[CalendarServer-changes] [2328] CalendarServer/trunk/twistedcaldav/static.py

source_changes at macosforge.org source_changes at macosforge.org
Fri Apr 18 14:15:26 PDT 2008


Revision: 2328
          http://trac.macosforge.org/projects/calendarserver/changeset/2328
Author:   wsanchez at apple.com
Date:     2008-04-18 14:15:25 -0700 (Fri, 18 Apr 2008)

Log Message:
-----------
Pull down r2276

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

Modified: CalendarServer/trunk/twistedcaldav/static.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/static.py	2008-04-18 17:23:07 UTC (rev 2327)
+++ CalendarServer/trunk/twistedcaldav/static.py	2008-04-18 21:15:25 UTC (rev 2328)
@@ -465,12 +465,16 @@
         DirectoryCalendarHomeTypeProvisioningResource.__init__(self, parent, recordType)
 
 class CalendarHomeUIDProvisioningFile (AutoProvisioningFileMixIn, DirectoryCalendarHomeUIDProvisioningResource, DAVFile):
-    def __init__(self, path, parent):
+    def __init__(self, path, parent, homeResourceClass=None):
         """
         @param path: the path to the file which will back the resource.
         """
         DAVFile.__init__(self, path)
         DirectoryCalendarHomeUIDProvisioningResource.__init__(self, parent)
+        if homeResourceClass is None:
+            self.homeResourceClass = CalendarHomeFile
+        else:
+            self.homeResourceClass = homeResourceClass
 
     def provisionChild(self, name):
         record = self.directory.recordWithGUID(name)
@@ -484,7 +488,7 @@
             return None
 
         childPath = self.fp.child(name)
-        child = CalendarHomeFile(childPath.path, self, record)
+        child = self.homeResourceClass(childPath.path, self, record)
         if not child.exists():
             self.provision()
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20080418/6eb44ecf/attachment.html


More information about the calendarserver-changes mailing list