[CalendarServer-changes] [6549] CalendarServer/branches/users/glyph/sharedpool/twistedcaldav/ storebridge.py
source_changes at macosforge.org
source_changes at macosforge.org
Mon Nov 1 14:32:16 PDT 2010
Revision: 6549
http://trac.macosforge.org/projects/calendarserver/changeset/6549
Author: glyph at apple.com
Date: 2010-11-01 14:32:13 -0700 (Mon, 01 Nov 2010)
Log Message:
-----------
missing yield (although loseConnection should be fixed to delay commit() so this is not required)
Modified Paths:
--------------
CalendarServer/branches/users/glyph/sharedpool/twistedcaldav/storebridge.py
Modified: CalendarServer/branches/users/glyph/sharedpool/twistedcaldav/storebridge.py
===================================================================
--- CalendarServer/branches/users/glyph/sharedpool/twistedcaldav/storebridge.py 2010-11-01 21:31:52 UTC (rev 6548)
+++ CalendarServer/branches/users/glyph/sharedpool/twistedcaldav/storebridge.py 2010-11-01 21:32:13 UTC (rev 6549)
@@ -664,9 +664,10 @@
content_type = MimeType("application", "octet-stream")
t = self._newStoreAttachment.store(content_type)
+ @inlineCallbacks
def done(ignored):
- t.loseConnection()
- return NO_CONTENT
+ yield t.loseConnection()
+ returnValue(NO_CONTENT)
return readStream(request.stream, t.write).addCallback(done)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20101101/0887e2b4/attachment.html>
More information about the calendarserver-changes
mailing list