[CalendarServer-changes] [4092] CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/ memcacheprops.py

source_changes at macosforge.org source_changes at macosforge.org
Mon Apr 27 13:32:14 PDT 2009


Revision: 4092
          http://trac.macosforge.org/projects/calendarserver/changeset/4092
Author:   wsanchez at apple.com
Date:     2009-04-27 13:32:14 -0700 (Mon, 27 Apr 2009)
Log Message:
-----------
Don't try to cache data for non-existing child

Modified Paths:
--------------
    CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/memcacheprops.py

Modified: CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/memcacheprops.py
===================================================================
--- CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/memcacheprops.py	2009-04-27 20:32:10 UTC (rev 4091)
+++ CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/memcacheprops.py	2009-04-27 20:32:14 UTC (rev 4092)
@@ -186,8 +186,10 @@
 
         for childName in childNames:
             child = self.collection.getChild(childName)
+            if child is None:
+                continue
+
             propertyStore = child.deadProperties()
-
             props = {}
             for qname in propertyStore.list(cache=False):
                 props[qname] = propertyStore.get(qname, cache=False)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20090427/4d6bb91f/attachment.html>


More information about the calendarserver-changes mailing list