[CalendarServer-changes] [2589] CalendarServer/branches/users/cdaboo/sqlpropstore-2563/twistedcaldav /root.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Jun 18 09:36:03 PDT 2008


Revision: 2589
          http://trac.macosforge.org/projects/calendarserver/changeset/2589
Author:   cdaboo at apple.com
Date:     2008-06-18 09:36:00 -0700 (Wed, 18 Jun 2008)

Log Message:
-----------
Only the root resource should be a RootResource instance.

Modified Paths:
--------------
    CalendarServer/branches/users/cdaboo/sqlpropstore-2563/twistedcaldav/root.py

Modified: CalendarServer/branches/users/cdaboo/sqlpropstore-2563/twistedcaldav/root.py
===================================================================
--- CalendarServer/branches/users/cdaboo/sqlpropstore-2563/twistedcaldav/root.py	2008-06-18 15:26:53 UTC (rev 2588)
+++ CalendarServer/branches/users/cdaboo/sqlpropstore-2563/twistedcaldav/root.py	2008-06-18 16:36:00 UTC (rev 2589)
@@ -32,6 +32,7 @@
 from twistedcaldav.static import CalendarHomeFile
 from twistedcaldav.directory.principal import DirectoryPrincipalResource
 from twistedcaldav.sqlprops import sqlPropertyStore
+from twistedcaldav.static import CalDAVFile
 
 log = Logger()
 
@@ -184,6 +185,12 @@
 
         return super(RootResource, self).locateChild(request, segments)
 
+    def createSimilarFile(self, path):
+        if path == self.fp.path:
+            return self
+        else:
+            return CalDAVFile(path, principalCollections=self.principalCollections())
+
     def http_COPY       (self, request): return responsecode.FORBIDDEN
     def http_MOVE       (self, request): return responsecode.FORBIDDEN
     def http_DELETE     (self, request): return responsecode.FORBIDDEN

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20080618/5107cf79/attachment.htm 


More information about the calendarserver-changes mailing list