[CalendarServer-changes] [432]
CalendarServer/branches/users/wsanchez/provisioning/twistedcaldav/
directory/appleopendirectory.py
source_changes at macosforge.org
source_changes at macosforge.org
Fri Nov 10 14:45:29 PST 2006
Revision: 432
http://trac.macosforge.org/projects/calendarserver/changeset/432
Author: wsanchez at apple.com
Date: 2006-11-10 14:45:29 -0800 (Fri, 10 Nov 2006)
Log Message:
-----------
There is no .remove() on dictionaries. Weak.
Modified Paths:
--------------
CalendarServer/branches/users/wsanchez/provisioning/twistedcaldav/directory/appleopendirectory.py
Modified: CalendarServer/branches/users/wsanchez/provisioning/twistedcaldav/directory/appleopendirectory.py
===================================================================
--- CalendarServer/branches/users/wsanchez/provisioning/twistedcaldav/directory/appleopendirectory.py 2006-11-10 22:41:27 UTC (rev 431)
+++ CalendarServer/branches/users/wsanchez/provisioning/twistedcaldav/directory/appleopendirectory.py 2006-11-10 22:45:29 UTC (rev 432)
@@ -84,7 +84,10 @@
if records:
self.records[recordType] = records
- reactor.callLater(recordListCacheTimeout, lambda: records.remove(recordType))
+
+ def flush():
+ del records[recordType]
+ reactor.callLater(recordListCacheTimeout, flush)
else:
# records is empty. This may mean the directory went down.
# Don't cache this result, so that we keep checking the directory.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20061110/8fbe08b9/attachment.html
More information about the calendarserver-changes
mailing list