[CalendarServer-changes] [9829] CalendarServer/trunk/twistedcaldav/storebridge.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Sep 20 16:20:35 PDT 2012


Revision: 9829
          http://trac.calendarserver.org//changeset/9829
Author:   dre at apple.com
Date:     2012-09-20 16:20:35 -0700 (Thu, 20 Sep 2012)
Log Message:
-----------
Add X-WR-CALNAME to rolled-up iCalendar responses

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/storebridge.py

Modified: CalendarServer/trunk/twistedcaldav/storebridge.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/storebridge.py	2012-09-20 16:21:15 UTC (rev 9828)
+++ CalendarServer/trunk/twistedcaldav/storebridge.py	2012-09-20 23:20:35 UTC (rev 9829)
@@ -1026,6 +1026,11 @@
         calendar.addProperty(VProperty("VERSION", "2.0"))
         calendar.addProperty(VProperty("PRODID", iCalendarProductID))
 
+        # Add a display name if available
+        displayName = self.displayName()
+        if displayName is not None:
+            calendar.addProperty(VProperty("X-WR-CALNAME", displayName))
+
         # Do some optimisation of access control calculation by determining any
         # inherited ACLs outside of the child resource loop and supply those to
         # the checkPrivileges on each child.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120920/a88ac98f/attachment.html>


More information about the calendarserver-changes mailing list