[CalendarServer-changes] [5392] CalendarServer/trunk/txdav/propertystore/xattr.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Mar 24 20:02:53 PDT 2010
Revision: 5392
http://trac.macosforge.org/projects/calendarserver/changeset/5392
Author: wsanchez at apple.com
Date: 2010-03-24 20:02:53 -0700 (Wed, 24 Mar 2010)
Log Message:
-----------
Include modified keys in __len__()
Modified Paths:
--------------
CalendarServer/trunk/txdav/propertystore/xattr.py
Modified: CalendarServer/trunk/txdav/propertystore/xattr.py
===================================================================
--- CalendarServer/trunk/txdav/propertystore/xattr.py 2010-03-24 18:27:08 UTC (rev 5391)
+++ CalendarServer/trunk/txdav/propertystore/xattr.py 2010-03-25 03:02:53 UTC (rev 5392)
@@ -181,7 +181,11 @@
yield key
def __len__(self):
- return len(self.attrs)
+ keys = (
+ set(self.attrs.keys()) |
+ set(self._encodeKey(key) for key in self.modified)
+ )
+ return len(keys)
#
# I/O
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100324/d0048345/attachment-0001.html>
More information about the calendarserver-changes
mailing list