[CalendarServer-changes] [3764] CalendarServer/trunk/twistedcaldav/directory/xmlfile.py
source_changes at macosforge.org
source_changes at macosforge.org
Fri Feb 27 16:35:27 PST 2009
Revision: 3764
http://trac.macosforge.org/projects/calendarserver/changeset/3764
Author: wsanchez at apple.com
Date: 2009-02-27 16:35:27 -0800 (Fri, 27 Feb 2009)
Log Message:
-----------
Don't check fileInfo if we didn't restat.
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/directory/xmlfile.py
Modified: CalendarServer/trunk/twistedcaldav/directory/xmlfile.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/xmlfile.py 2009-02-28 00:34:52 UTC (rev 3763)
+++ CalendarServer/trunk/twistedcaldav/directory/xmlfile.py 2009-02-28 00:35:27 UTC (rev 3764)
@@ -96,12 +96,12 @@
if self._alwaysStat or currentTime - self._lastCheck > 60:
self.xmlFile.restat()
self._lastCheck = currentTime
- fileInfo = (self.xmlFile.getmtime(), self.xmlFile.getsize())
- if fileInfo != self._fileInfo:
- parser = XMLAccountsParser(self.xmlFile)
- self._parsedAccounts = parser.items
- self.realmName = parser.realm
- self._fileInfo = fileInfo
+ fileInfo = (self.xmlFile.getmtime(), self.xmlFile.getsize())
+ if fileInfo != self._fileInfo:
+ parser = XMLAccountsParser(self.xmlFile)
+ self._parsedAccounts = parser.items
+ self.realmName = parser.realm
+ self._fileInfo = fileInfo
return self._parsedAccounts
class XMLDirectoryRecord(DirectoryRecord):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20090227/a8bdb77e/attachment-0001.html>
More information about the calendarserver-changes
mailing list