[CalendarServer-changes] [1832] CalendarServer/trunk/twistedcaldav/directory/calendar.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Aug 30 12:46:19 PDT 2007


Revision: 1832
          http://trac.macosforge.org/projects/calendarserver/changeset/1832
Author:   cdaboo at apple.com
Date:     2007-08-30 12:46:19 -0700 (Thu, 30 Aug 2007)

Log Message:
-----------
Simplify r1831 somewhat.

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/directory/calendar.py

Modified: CalendarServer/trunk/twistedcaldav/directory/calendar.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/calendar.py	2007-08-30 18:39:23 UTC (rev 1831)
+++ CalendarServer/trunk/twistedcaldav/directory/calendar.py	2007-08-30 19:46:19 UTC (rev 1832)
@@ -209,14 +209,7 @@
     def provision(self):
         # If an ACL property does not currently exist, create one from
         # the defaultACL
-        try:
-            _ignore_acl = self.readDeadProperty(davxml.ACL)
-        except HTTPError, e:
-            assert (
-                e.response.code == responsecode.NOT_FOUND,
-                "Expected %s response from readDeadProperty() exception, not %s"
-                % (responsecode.NOT_FOUND, e.response.code)
-            )
+        if not self.hasDeadProperty(davxml.ACL):
             self.writeDeadProperty(self.defaultAccessControlList())
         
         super(DirectoryCalendarHomeResource, self).provision()

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070830/24975d8d/attachment.html


More information about the calendarserver-changes mailing list