[CalendarServer-changes] [2727] CalendarServer/trunk/twistedcaldav
source_changes at macosforge.org
source_changes at macosforge.org
Fri Jul 18 14:11:09 PDT 2008
Revision: 2727
http://trac.macosforge.org/projects/calendarserver/changeset/2727
Author: wsanchez at apple.com
Date: 2008-07-18 14:11:08 -0700 (Fri, 18 Jul 2008)
Log Message:
-----------
Use CachingXattrPropertyStore in DAVFile.
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 16:41:09 UTC (rev 2726)
+++ CalendarServer/trunk/twistedcaldav/extensions.py 2008-07-18 21:11:08 UTC (rev 2727)
@@ -26,6 +26,7 @@
"ReadOnlyWritePropertiesResourceMixIn",
"ReadOnlyResourceMixIn",
"XMLResponse",
+ "CachingXattrPropertyStore",
]
import cPickle as pickle
@@ -766,8 +767,6 @@
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 16:41:09 UTC (rev 2726)
+++ CalendarServer/trunk/twistedcaldav/root.py 2008-07-18 21:11:08 UTC (rev 2727)
@@ -91,13 +91,6 @@
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 16:41:09 UTC (rev 2726)
+++ CalendarServer/trunk/twistedcaldav/static.py 2008-07-18 21:11:08 UTC (rev 2727)
@@ -87,9 +87,8 @@
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/3b0a3804/attachment.html
More information about the calendarserver-changes
mailing list