[CalendarServer-changes] [6039] CalendarServer/branches/users/glyph/sql-store/twistedcaldav/test/ util.py

source_changes at macosforge.org source_changes at macosforge.org
Tue Aug 10 15:11:05 PDT 2010


Revision: 6039
          http://trac.macosforge.org/projects/calendarserver/changeset/6039
Author:   glyph at apple.com
Date:     2010-08-10 15:11:04 -0700 (Tue, 10 Aug 2010)
Log Message:
-----------
Defer executing the callback argument until the root has been refreshed and the transaction committed.

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/sql-store/twistedcaldav/test/util.py

Modified: CalendarServer/branches/users/glyph/sql-store/twistedcaldav/test/util.py
===================================================================
--- CalendarServer/branches/users/glyph/sql-store/twistedcaldav/test/util.py	2010-08-10 21:33:52 UTC (rev 6038)
+++ CalendarServer/branches/users/glyph/sql-store/twistedcaldav/test/util.py	2010-08-10 22:11:04 UTC (rev 6039)
@@ -389,9 +389,11 @@
         """
         self.noRenderCommit()
         yield self._refreshRoot(request)
-        result = (yield super(HomeTestCase, self).send(request, callback))
+        result = (yield super(HomeTestCase, self).send(request))
         self.committed = True
         yield self._refreshRoot()
+        if callback is not None:
+            result = yield callback(result)
         returnValue(result)
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100810/c9cbc73a/attachment.html>


More information about the calendarserver-changes mailing list