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

source_changes at macosforge.org source_changes at macosforge.org
Fri May 23 22:59:01 PDT 2008


Revision: 2485
          http://trac.macosforge.org/projects/calendarserver/changeset/2485
Author:   wsanchez at apple.com
Date:     2008-05-23 22:58:59 -0700 (Fri, 23 May 2008)

Log Message:
-----------
If the ACL property doesn't have a dead property behind it, there shouldn't be any need to pre-emptively create it.

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

Modified: CalendarServer/trunk/twistedcaldav/directory/calendar.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/calendar.py	2008-05-24 05:15:30 UTC (rev 2484)
+++ CalendarServer/trunk/twistedcaldav/directory/calendar.py	2008-05-24 05:58:59 UTC (rev 2485)
@@ -266,13 +266,13 @@
             assert isinstance(child, cls), "Child %r is not a %s: %r" % (name, cls.__name__, child)
             self.putChild(name, child)
 
-    def provision(self):
-        # If an ACL property does not currently exist, create one from
-        # the defaultACL
-        if not self.hasDeadProperty(davxml.ACL):
-            self.writeDeadProperty(self.defaultAccessControlList())
-        
-        super(DirectoryCalendarHomeResource, self).provision()
+#    def provision(self):
+#        # If an ACL property does not currently exist, create one from
+#        # the defaultACL
+#        if not self.hasDeadProperty(davxml.ACL):
+#            self.writeDeadProperty(self.defaultAccessControlList())
+#        
+#        super(DirectoryCalendarHomeResource, self).provision()
 
     def provisionDefaultCalendars(self):
         self.provision()

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20080523/6d79778a/attachment.htm 


More information about the calendarserver-changes mailing list