[CalendarServer-changes] [7520] CalendarServer/branches/users/cdaboo/timezones/twistedcaldav/ extensions.py

source_changes at macosforge.org source_changes at macosforge.org
Tue May 24 14:10:36 PDT 2011


Revision: 7520
          http://trac.macosforge.org/projects/calendarserver/changeset/7520
Author:   cdaboo at apple.com
Date:     2011-05-24 14:10:35 -0700 (Tue, 24 May 2011)
Log Message:
-----------
Handle no resource-type property.

Modified Paths:
--------------
    CalendarServer/branches/users/cdaboo/timezones/twistedcaldav/extensions.py

Modified: CalendarServer/branches/users/cdaboo/timezones/twistedcaldav/extensions.py
===================================================================
--- CalendarServer/branches/users/cdaboo/timezones/twistedcaldav/extensions.py	2011-05-24 18:47:58 UTC (rev 7519)
+++ CalendarServer/branches/users/cdaboo/timezones/twistedcaldav/extensions.py	2011-05-24 21:10:35 UTC (rev 7520)
@@ -639,8 +639,9 @@
             lastModified = child.lastModified()
             rtypes = []
             fullrtype = child.resourceType()
-            for rtype in fullrtype.children:
-                rtypes.append(rtype.name)
+            if fullrtype is not None:
+                for rtype in fullrtype.children:
+                    rtypes.append(rtype.name)
             if rtypes:
                 rtypes = "(%s)" % (", ".join(rtypes),)
             if child.isCollection():
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110524/e11e9238/attachment.html>


More information about the calendarserver-changes mailing list