[CalendarServer-changes] [1415] CalendarServer/trunk/twistedcaldav/resource.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Mar 22 18:53:59 PDT 2007


Revision: 1415
          http://trac.macosforge.org/projects/calendarserver/changeset/1415
Author:   wsanchez at apple.com
Date:     2007-03-22 18:53:59 -0700 (Thu, 22 Mar 2007)

Log Message:
-----------
Don't add live properties for disabled features.

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

Modified: CalendarServer/trunk/twistedcaldav/resource.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/resource.py	2007-03-23 01:53:39 UTC (rev 1414)
+++ CalendarServer/trunk/twistedcaldav/resource.py	2007-03-23 01:53:59 UTC (rev 1415)
@@ -566,15 +566,19 @@
             "calendar-availability",
         )
 
-    liveProperties = DAVPrincipalResource.liveProperties + (
+    liveProperties = tuple(DAVPrincipalResource.liveProperties) + (
         (caldav_namespace, "calendar-home-set"        ),
         (caldav_namespace, "calendar-user-address-set"),
         (caldav_namespace, "schedule-inbox-URL"       ),
         (caldav_namespace, "schedule-outbox-URL"      ),
-        (calendarserver_namespace, "dropbox-home-URL" ),
-        (calendarserver_namespace, "notifications-URL"),
     )
 
+    if config.EnableDropBox:
+        liveProperties += ((calendarserver_namespace, "dropbox-home-URL" ),)
+
+    if config.EnableNotifications:
+        liveProperties += ((calendarserver_namespace, "notifications-URL"),)
+
     def isCollection(self):
         return True
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070322/98a086d6/attachment.html


More information about the calendarserver-changes mailing list