[CalendarServer-changes] [560] CalendarServer/branches/users/wsanchez/provisioning-2/twistedcaldav/ resource.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Nov 22 13:47:54 PST 2006


Revision: 560
          http://trac.macosforge.org/projects/calendarserver/changeset/560
Author:   cdaboo at apple.com
Date:     2006-11-22 13:47:54 -0800 (Wed, 22 Nov 2006)

Log Message:
-----------
Fallback to looking for dead property if there are no registered principal collections.

Modified Paths:
--------------
    CalendarServer/branches/users/wsanchez/provisioning-2/twistedcaldav/resource.py

Modified: CalendarServer/branches/users/wsanchez/provisioning-2/twistedcaldav/resource.py
===================================================================
--- CalendarServer/branches/users/wsanchez/provisioning-2/twistedcaldav/resource.py	2006-11-22 20:40:21 UTC (rev 559)
+++ CalendarServer/branches/users/wsanchez/provisioning-2/twistedcaldav/resource.py	2006-11-22 21:47:54 UTC (rev 560)
@@ -289,7 +289,11 @@
         """
         Get the values cached in CalendarPrincipalCollectionResource.
         """
-        return succeed(CalendarPrincipalCollectionResource.principleCollectionSet.keys())
+        collections = CalendarPrincipalCollectionResource.principleCollectionSet.keys()
+        if collections:
+            return succeed(CalendarPrincipalCollectionResource.principleCollectionSet.keys())
+        else:
+            return super(CalDAVResource, self).principalCollections(request)
 
     ##
     # CalDAV

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20061122/9ac1fc00/attachment.html


More information about the calendarserver-changes mailing list