[CalendarServer-changes] [11329] CalendarServer/trunk/txdav/common/datastore/sql.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Jun 12 08:28:40 PDT 2013


Revision: 11329
          http://trac.calendarserver.org//changeset/11329
Author:   cdaboo at apple.com
Date:     2013-06-12 08:28:40 -0700 (Wed, 12 Jun 2013)
Log Message:
-----------
Fix for proper deferred function call.

Modified Paths:
--------------
    CalendarServer/trunk/txdav/common/datastore/sql.py

Modified: CalendarServer/trunk/txdav/common/datastore/sql.py
===================================================================
--- CalendarServer/trunk/txdav/common/datastore/sql.py	2013-06-11 21:07:18 UTC (rev 11328)
+++ CalendarServer/trunk/txdav/common/datastore/sql.py	2013-06-12 15:28:40 UTC (rev 11329)
@@ -4897,7 +4897,7 @@
         """
 
         if self._txn.isNotifiedAlready(self):
-            returnValue(None)
+            return succeed(None)
         self._txn.notificationAddedForObject(self)
 
         # Send notifications
@@ -4905,7 +4905,9 @@
             for notifier in self._notifiers.values():
                 self._txn.postCommit(notifier.notify)
 
+        return succeed(None)
 
+
     @classproperty
     def _completelyNewRevisionQuery(cls): #@NoSelf
         rev = cls._revisionsSchema
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130612/411b2bd0/attachment.html>


More information about the calendarserver-changes mailing list