[CalendarServer-changes] [9453] CalendarServer/branches/users/gaya/inviteclean/txdav/common/ datastore/sql.py
source_changes at macosforge.org
source_changes at macosforge.org
Sat Jul 14 16:06:31 PDT 2012
Revision: 9453
http://trac.macosforge.org/projects/calendarserver/changeset/9453
Author: gaya at apple.com
Date: 2012-07-14 16:06:29 -0700 (Sat, 14 Jul 2012)
Log Message:
-----------
add notifyChanged() call in shareWith() and unshareeWith()
Modified Paths:
--------------
CalendarServer/branches/users/gaya/inviteclean/txdav/common/datastore/sql.py
Modified: CalendarServer/branches/users/gaya/inviteclean/txdav/common/datastore/sql.py
===================================================================
--- CalendarServer/branches/users/gaya/inviteclean/txdav/common/datastore/sql.py 2012-07-13 22:27:46 UTC (rev 9452)
+++ CalendarServer/branches/users/gaya/inviteclean/txdav/common/datastore/sql.py 2012-07-14 23:06:29 UTC (rev 9453)
@@ -2115,6 +2115,10 @@
shareeProps = yield PropertyStore.load(shareeHome.uid(), self._txn,
self._resourceID)
shareeProps[dn] = dnprop
+
+ # Must send notification to ensure cache invalidation occurs
+ yield self.notifyChanged()
+
returnValue(sharedName)
@@ -2151,6 +2155,10 @@
).on(self._txn, resourceID=self._resourceID,
homeID=shareeHome._resourceID))[0][0]
shareeHome._sharedChildren.pop(resourceName, None)
+
+ # Must send notification to ensure cache invalidation occurs
+ yield self.notifyChanged()
+
returnValue(resourceName)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120714/b0156ce5/attachment.html>
More information about the calendarserver-changes
mailing list