[CalendarServer-changes] [2731] CalendarServer/trunk/twistedcaldav

source_changes at macosforge.org source_changes at macosforge.org
Fri Jul 18 16:30:59 PDT 2008


Revision: 2731
          http://trac.macosforge.org/projects/calendarserver/changeset/2731
Author:   wsanchez at apple.com
Date:     2008-07-18 16:30:59 -0700 (Fri, 18 Jul 2008)
Log Message:
-----------
Not confident enough for this after all

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/extensions.py
    CalendarServer/trunk/twistedcaldav/root.py
    CalendarServer/trunk/twistedcaldav/static.py

Modified: CalendarServer/trunk/twistedcaldav/extensions.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/extensions.py	2008-07-18 23:29:33 UTC (rev 2730)
+++ CalendarServer/trunk/twistedcaldav/extensions.py	2008-07-18 23:30:59 UTC (rev 2731)
@@ -26,7 +26,6 @@
     "ReadOnlyWritePropertiesResourceMixIn",
     "ReadOnlyResourceMixIn",
     "XMLResponse",
-    "CachingXattrPropertyStore",
 ]
 
 import cPickle as pickle
@@ -767,6 +766,8 @@
         Response.__init__(self, code, stream=element.toxml())
         self.headers.setHeader("content-type", MimeType("text", "xml"))
 
+
+
 class CachingXattrPropertyStore(xattrPropertyStore):
     """
     A Property Store that caches attributes from the xattrs.

Modified: CalendarServer/trunk/twistedcaldav/root.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/root.py	2008-07-18 23:29:33 UTC (rev 2730)
+++ CalendarServer/trunk/twistedcaldav/root.py	2008-07-18 23:30:59 UTC (rev 2731)
@@ -91,6 +91,13 @@
             self.contentFilters.append((addConnectionClose, True))
 
 
+    def deadProperties(self):
+        if not hasattr(self, '_dead_properties'):
+            self._dead_properties = CachingXattrPropertyStore(self)
+
+        return self._dead_properties
+
+
     def checkSacl(self, request):
         """
         Check SACLs against the current request

Modified: CalendarServer/trunk/twistedcaldav/static.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/static.py	2008-07-18 23:29:33 UTC (rev 2730)
+++ CalendarServer/trunk/twistedcaldav/static.py	2008-07-18 23:30:59 UTC (rev 2731)
@@ -87,8 +87,9 @@
             return super(CalDAVFile, self).__repr__()
 
     def deadProperties(self):
-        if not hasattr(self, '_dead_properties'):
+        if not hasattr(self, "_dead_properties"):
             self._dead_properties = CachingXattrPropertyStore(self)
+
         return self._dead_properties
 
     ##
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20080718/0b126af8/attachment.html 


More information about the calendarserver-changes mailing list