[CalendarServer-changes] [5773] CalendarServer/branches/new-store/twistedcaldav/static.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Jun 17 17:38:54 PDT 2010


Revision: 5773
          http://trac.macosforge.org/projects/calendarserver/changeset/5773
Author:   cdaboo at apple.com
Date:     2010-06-17 17:38:53 -0700 (Thu, 17 Jun 2010)
Log Message:
-----------
Skip parent.exists tests for calendar creation.

Modified Paths:
--------------
    CalendarServer/branches/new-store/twistedcaldav/static.py

Modified: CalendarServer/branches/new-store/twistedcaldav/static.py
===================================================================
--- CalendarServer/branches/new-store/twistedcaldav/static.py	2010-06-17 17:45:39 UTC (rev 5772)
+++ CalendarServer/branches/new-store/twistedcaldav/static.py	2010-06-18 00:38:53 UTC (rev 5773)
@@ -227,9 +227,10 @@
             log.err("Attempt to create collection where file exists: %s" % (self.fp.path,))
             raise HTTPError(StatusResponse(responsecode.NOT_ALLOWED, "File exists"))
 
-        if not self.fp.parent().isdir():
-            log.err("Attempt to create collection with no parent: %s" % (self.fp.path,))
-            raise HTTPError(StatusResponse(responsecode.CONFLICT, "No parent collection"))
+        # newStore guarantees that we always have a parent calendar home
+        #if not self.fp.parent().isdir():
+        #    log.err("Attempt to create collection with no parent: %s" % (self.fp.path,))
+        #    raise HTTPError(StatusResponse(responsecode.CONFLICT, "No parent collection"))
 
         #
         # Verify that no parent collection is a calendar also
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100617/0c381a39/attachment-0001.html>


More information about the calendarserver-changes mailing list