[CalendarServer-changes] [4138] CalendarServer/trunk/twistedcaldav/static.py
source_changes at macosforge.org
source_changes at macosforge.org
Fri May 1 17:23:33 PDT 2009
Revision: 4138
http://trac.macosforge.org/projects/calendarserver/changeset/4138
Author: sagen at apple.com
Date: 2009-05-01 17:23:33 -0700 (Fri, 01 May 2009)
Log Message:
-----------
The override of MOVE and DELETE wasn't waiting for them to complete before flushing the property cache. Now it does.
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/static.py
Modified: CalendarServer/trunk/twistedcaldav/static.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/static.py 2009-05-01 22:44:29 UTC (rev 4137)
+++ CalendarServer/trunk/twistedcaldav/static.py 2009-05-02 00:23:33 UTC (rev 4138)
@@ -415,14 +415,16 @@
method = "http_" + method
original = getattr(similar, method)
+ @inlineCallbacks
def override(request, original=original):
- # Call original method
- response = original(request)
+ # Call original method (which is deferred)
+ response = (yield original(request))
+
# Wipe the cache
similar.deadProperties().flushCache()
- return response
+ returnValue(response)
setattr(similar, method, override)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20090501/6e9df570/attachment.html>
More information about the calendarserver-changes
mailing list