[CalendarServer-changes] [5516] CalendarServer/branches/users/wsanchez/transations/twext/python/ filepath.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Apr 22 17:26:55 PDT 2010


Revision: 5516
          http://trac.macosforge.org/projects/calendarserver/changeset/5516
Author:   wsanchez at apple.com
Date:     2010-04-22 17:26:53 -0700 (Thu, 22 Apr 2010)
Log Message:
-----------
moveTo() needs to invalidate cached stats turds in the destination.

Modified Paths:
--------------
    CalendarServer/branches/users/wsanchez/transations/twext/python/filepath.py

Modified: CalendarServer/branches/users/wsanchez/transations/twext/python/filepath.py
===================================================================
--- CalendarServer/branches/users/wsanchez/transations/twext/python/filepath.py	2010-04-23 00:25:30 UTC (rev 5515)
+++ CalendarServer/branches/users/wsanchez/transations/twext/python/filepath.py	2010-04-23 00:26:53 UTC (rev 5516)
@@ -124,12 +124,9 @@
         Override L{FilePath.moveTo}, updating extended cache information if
         necessary.
         """
-        try:
-            return super(CachingFilePath, self).moveTo(destination, followLinks)
-        except OSError:
-            raise
-        else:
-            self.changed()
+        result = super(CachingFilePath, self).moveTo(destination, followLinks)
+        self.changed()
+        destination.changed()
 
 
     def remove(self):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100422/6625759d/attachment.html>


More information about the calendarserver-changes mailing list