[CalendarServer-changes] [5746] CalendarServer/branches/new-store/twistedcaldav

source_changes at macosforge.org source_changes at macosforge.org
Tue Jun 15 17:28:51 PDT 2010


Revision: 5746
          http://trac.macosforge.org/projects/calendarserver/changeset/5746
Author:   glyph at apple.com
Date:     2010-06-15 17:28:48 -0700 (Tue, 15 Jun 2010)
Log Message:
-----------
associate transactions with the inbox

Modified Paths:
--------------
    CalendarServer/branches/new-store/twistedcaldav/static.py
    CalendarServer/branches/new-store/twistedcaldav/storebridge.py

Modified: CalendarServer/branches/new-store/twistedcaldav/static.py
===================================================================
--- CalendarServer/branches/new-store/twistedcaldav/static.py	2010-06-16 00:28:14 UTC (rev 5745)
+++ CalendarServer/branches/new-store/twistedcaldav/static.py	2010-06-16 00:28:48 UTC (rev 5746)
@@ -1018,6 +1018,8 @@
         @param path: the path to the file which will back the resource.
         """
 
+        self.associateWithTransaction(transaction)
+
         # TODO: when calendar home gets a resourceID( ) method, remove
         # the "id=record.uid" keyword from this call:
         self.clientNotifier = ClientNotifier(self, id=record.uid)
@@ -1032,7 +1034,6 @@
             self._newStoreCalendarHome.properties()
         )
 
-        self.associateWithTransaction(transaction)
 
 
     def exists(self):

Modified: CalendarServer/branches/new-store/twistedcaldav/storebridge.py
===================================================================
--- CalendarServer/branches/new-store/twistedcaldav/storebridge.py	2010-06-16 00:28:14 UTC (rev 5745)
+++ CalendarServer/branches/new-store/twistedcaldav/storebridge.py	2010-06-16 00:28:48 UTC (rev 5746)
@@ -187,6 +187,7 @@
 
     def __init__(self, *a, **kw):
         super(StoreScheduleInboxFile, self).__init__(*a, **kw)
+        self.parent.propagateTransaction(self)
         home = self.parent._newStoreCalendarHome
         storage = home.calendarWithName("inbox")
         if storage is None:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100615/2596343d/attachment.html>


More information about the calendarserver-changes mailing list