[CalendarServer-changes] [2520] CalendarServer/trunk/twistedcaldav/static.py
source_changes at macosforge.org
source_changes at macosforge.org
Sat May 31 14:09:20 PDT 2008
Revision: 2520
http://trac.macosforge.org/projects/calendarserver/changeset/2520
Author: dreid at apple.com
Date: 2008-05-31 14:09:15 -0700 (Sat, 31 May 2008)
Log Message:
-----------
Make sure the inbox, outbox, and dropbox get cacheNotifiers so they can invalidate the cache.
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/static.py
Modified: CalendarServer/trunk/twistedcaldav/static.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/static.py 2008-05-31 18:25:23 UTC (rev 2519)
+++ CalendarServer/trunk/twistedcaldav/static.py 2008-05-31 21:09:15 UTC (rev 2520)
@@ -294,7 +294,9 @@
if hasattr(self, 'cacheNotifier'):
return self.cacheNotifier.changed()
-
+ else:
+ log.debug("%r does not have a cacheNotifier but the CTag changed"
+ % (self,))
return succeed(True)
##
@@ -561,9 +563,9 @@
"""
@param path: the path to the file which will back the resource.
"""
+ self.cacheNotifier = self.cacheNotifierFactory(self)
CalDAVFile.__init__(self, path)
DirectoryCalendarHomeResource.__init__(self, parent, record)
- self.cacheNotifier = self.cacheNotifierFactory(self)
def provisionChild(self, name):
if config.EnableDropBox:
@@ -578,7 +580,9 @@
}.get(name, None)
if cls is not None:
- return cls(self.fp.child(name).path, self)
+ child = cls(self.fp.child(name).path, self)
+ child.cacheNotifier = self.cacheNotifier
+ return child
return self.createSimilarFile(self.fp.child(name).path)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20080531/3ed87059/attachment.htm
More information about the calendarserver-changes
mailing list