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

source_changes at macosforge.org source_changes at macosforge.org
Wed Oct 4 17:57:02 PDT 2006


Revision: 247
          http://trac.macosforge.org/projects/calendarserver/changeset/247
Author:   wsanchez at apple.com
Date:     2006-10-04 17:57:02 -0700 (Wed, 04 Oct 2006)

Log Message:
-----------
Allow overriding of the class provisioned calendar homes in CalendarHomeProvisioningFile.

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

Modified: CalendarServer/trunk/twistedcaldav/static.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/static.py	2006-10-04 22:17:46 UTC (rev 246)
+++ CalendarServer/trunk/twistedcaldav/static.py	2006-10-05 00:57:02 UTC (rev 247)
@@ -626,6 +626,8 @@
     """
     L{CalDAVFile} resource which provisions calendar home collections as needed.
     """
+    calendarHomeClass = CalendarHomeFile
+
     def __init__(self, path):
         """
         @param path: the path to the file which will back the resource.
@@ -654,7 +656,7 @@
 
             child_fp.makedirs()
 
-        return CalendarHomeFile(child_fp.path)
+        return self.calendarHomeClass(child_fp.path)
 
     def createSimilarFile(self, path):
         return CalDAVFile(path)

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


More information about the calendarserver-changes mailing list