[CalendarServer-changes] [2627] CalendarServer/branches/users/cdaboo/sqlpropstore-2623/lib-patches/ Twisted/twisted.web2.dav.static.patch
source_changes at macosforge.org
source_changes at macosforge.org
Thu Jun 26 11:24:43 PDT 2008
Revision: 2627
http://trac.macosforge.org/projects/calendarserver/changeset/2627
Author: cdaboo at apple.com
Date: 2008-06-26 11:24:42 -0700 (Thu, 26 Jun 2008)
Log Message:
-----------
Make sure we also have the parent setup properly.
Modified Paths:
--------------
CalendarServer/branches/users/cdaboo/sqlpropstore-2623/lib-patches/Twisted/twisted.web2.dav.static.patch
Modified: CalendarServer/branches/users/cdaboo/sqlpropstore-2623/lib-patches/Twisted/twisted.web2.dav.static.patch
===================================================================
--- CalendarServer/branches/users/cdaboo/sqlpropstore-2623/lib-patches/Twisted/twisted.web2.dav.static.patch 2008-06-26 17:45:39 UTC (rev 2626)
+++ CalendarServer/branches/users/cdaboo/sqlpropstore-2623/lib-patches/Twisted/twisted.web2.dav.static.patch 2008-06-26 18:24:42 UTC (rev 2627)
@@ -131,14 +131,19 @@
# Workarounds for issues with File
##
-@@ -132,7 +186,9 @@
+@@ -132,7 +186,14 @@
return (self.createSimilarFile(self.fp.child(path).path), segments[1:])
def createSimilarFile(self, path):
- return self.__class__(path, defaultType=self.defaultType, indexNames=self.indexNames[:])
-+ return self.__class__(
-+ path, defaultType=self.defaultType, indexNames=self.indexNames[:],
-+ principalCollections=self.principalCollections())
++ if path == self.fp.path:
++ return self
++ else:
++ similar = self.__class__(
++ path, defaultType=self.defaultType, indexNames=self.indexNames[:],
++ principalCollections=self.principalCollections())
++ similar.parent_resource = self
++ return similar
#
# Attach method handlers to DAVFile
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20080626/5c74904c/attachment.htm
More information about the calendarserver-changes
mailing list