[CalendarServer-changes] [2232]
CalendarServer/branches/release/CalendarServer-1.2-dev/twistedcaldav
/static.py
source_changes at macosforge.org
source_changes at macosforge.org
Mon Mar 17 16:13:34 PDT 2008
Revision: 2232
http://trac.macosforge.org/projects/calendarserver/changeset/2232
Author: wsanchez at apple.com
Date: 2008-03-17 16:13:34 -0700 (Mon, 17 Mar 2008)
Log Message:
-----------
Pulled up r2229: Regression: Initial PROPFIND causes 500 error
Modified Paths:
--------------
CalendarServer/branches/release/CalendarServer-1.2-dev/twistedcaldav/static.py
Modified: CalendarServer/branches/release/CalendarServer-1.2-dev/twistedcaldav/static.py
===================================================================
--- CalendarServer/branches/release/CalendarServer-1.2-dev/twistedcaldav/static.py 2008-03-17 23:11:41 UTC (rev 2231)
+++ CalendarServer/branches/release/CalendarServer-1.2-dev/twistedcaldav/static.py 2008-03-17 23:13:34 UTC (rev 2232)
@@ -414,9 +414,13 @@
if hasattr(self, "parent"):
parent = self.parent
- assert parent.exists()
- assert parent.isCollection()
+ if not parent.exists() and isinstance(parent, AutoProvisioningFileMixIn):
+ parent.provision()
+
+ assert parent.exists(), "Parent %s of %s does not exist" % (parent, self)
+ assert parent.isCollection(), "Parent %s of %s is not a collection" % (parent, self)
+
if self.isCollection():
try:
fp.makedirs()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20080317/cce9f0f8/attachment-0001.html
More information about the calendarserver-changes
mailing list