[CalendarServer-changes] [12539] twext/trunk/twext/who/xml.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Mar 12 11:15:56 PDT 2014
Revision: 12539
http://trac.calendarserver.org//changeset/12539
Author: wsanchez at apple.com
Date: 2014-02-03 10:51:36 -0800 (Mon, 03 Feb 2014)
Log Message:
-----------
Make refreshInterval an instance variable.
Modified Paths:
--------------
twext/trunk/twext/who/xml.py
Modified: twext/trunk/twext/who/xml.py
===================================================================
--- twext/trunk/twext/who/xml.py 2014-02-03 17:58:12 UTC (rev 12538)
+++ twext/trunk/twext/who/xml.py 2014-02-03 18:51:36 UTC (rev 12539)
@@ -148,13 +148,21 @@
attribute = Attribute
recordTypeValue = RecordTypeValue
- refreshInterval = 4
+ def __init__(self, filePath, refreshInterval=4):
+ """
+ @param filePath: A file path for the XML data to load into the
+ directory.
+ @type filePath: L{FilePath}
- def __init__(self, filePath):
+ @param refreshInterval: An interval (in seconds) during which time
+ C{filePath} will not be checked for new data, reducing I/O.
+ @type refreshInterval: L{int}
+ """
BaseDirectoryService.__init__(self, realmName=noRealmName)
self.filePath = filePath
+ self.refreshInterval = refreshInterval
def __repr__(self):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140312/e8a8bd56/attachment.html>
More information about the calendarserver-changes
mailing list