[CalendarServer-changes] [8236] CalendarServer/trunk/twistedcaldav/upgrade.py

source_changes at macosforge.org source_changes at macosforge.org
Fri Oct 28 14:49:41 PDT 2011


Revision: 8236
          http://trac.macosforge.org/projects/calendarserver/changeset/8236
Author:   sagen at apple.com
Date:     2011-10-28 14:49:40 -0700 (Fri, 28 Oct 2011)
Log Message:
-----------
Turn off push not just for deletion of the inbox item, but for the changes made by processing the inbox items.

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/upgrade.py

Modified: CalendarServer/trunk/twistedcaldav/upgrade.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/upgrade.py	2011-10-28 18:22:23 UTC (rev 8235)
+++ CalendarServer/trunk/twistedcaldav/upgrade.py	2011-10-28 21:49:40 UTC (rev 8236)
@@ -1064,6 +1064,9 @@
 
         log.debug("Processing inbox item %s" % (inboxItem,))
 
+        txn = request._newStoreTransaction
+        txn._notifierFactory = None # Do not send push notifications
+
         ownerPrincipal = principal
         cua = "urn:uuid:%s" % (uuid,)
         owner = LocalCalendarUser(cua, ownerPrincipal,
@@ -1098,8 +1101,6 @@
         #
         # Remove item
         #
-        txn = request._newStoreTransaction
-        txn._notifierFactory = None # Do not send push notifications
         yield inboxItem.storeRemove(request, True, uri)
         yield txn.commit()
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20111028/2a900c91/attachment.html>


More information about the calendarserver-changes mailing list