[CalendarServer-changes] [851] CalendarServer/trunk/twistedcaldav/directory/calendar.py

source_changes at macosforge.org source_changes at macosforge.org
Mon Dec 18 17:52:44 PST 2006


Revision: 851
          http://trac.macosforge.org/projects/calendarserver/changeset/851
Author:   wsanchez at apple.com
Date:     2006-12-18 17:52:44 -0800 (Mon, 18 Dec 2006)

Log Message:
-----------
Do put children in __init__()

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/directory/calendar.py

Modified: CalendarServer/trunk/twistedcaldav/directory/calendar.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/calendar.py	2006-12-19 01:20:21 UTC (rev 850)
+++ CalendarServer/trunk/twistedcaldav/directory/calendar.py	2006-12-19 01:52:44 UTC (rev 851)
@@ -58,12 +58,9 @@
         # FIXME: Smells like a hack
         directory.calendarHomesCollection = self
 
-    def provision(self):
-        if not self.putChildren:
-            # Create children
-            for recordType in self.directory.recordTypes():
-                self.putChild(recordType, self.provisionChild(recordType))
-        return super(DirectoryCalendarHomeProvisioningResource, self).provision()
+        # Create children
+        for recordType in self.directory.recordTypes():
+            self.putChild(recordType, self.provisionChild(recordType))
 
     def provisionChild(self, recordType):
         raise NotImplementedError("Subclass must implement provisionChild()")

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20061218/331ff966/attachment.html


More information about the calendarserver-changes mailing list