[CalendarServer-changes] [9319] CalendarServer/trunk/twistedcaldav/directory/xmlaccountsparser.py

source_changes at macosforge.org source_changes at macosforge.org
Thu May 31 14:04:05 PDT 2012


Revision: 9319
          http://trac.macosforge.org/projects/calendarserver/changeset/9319
Author:   cdaboo at apple.com
Date:     2012-05-31 14:04:04 -0700 (Thu, 31 May 2012)
Log Message:
-----------
Treat repeat=1 as a valid range expansion.

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/directory/xmlaccountsparser.py

Modified: CalendarServer/trunk/twistedcaldav/directory/xmlaccountsparser.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/xmlaccountsparser.py	2012-05-31 17:46:35 UTC (rev 9318)
+++ CalendarServer/trunk/twistedcaldav/directory/xmlaccountsparser.py	2012-05-31 21:04:04 UTC (rev 9319)
@@ -127,11 +127,11 @@
             if child.hasAttribute(ATTRIBUTE_REPEAT):
                 repeat = int(child.getAttribute(ATTRIBUTE_REPEAT))
             else:
-                repeat = 1
+                repeat = 0
 
             principal = XMLAccountRecord(recordType)
             principal.parseXML(child)
-            if repeat > 1:
+            if repeat > 0:
                 for i in xrange(1, repeat+1):
                     newprincipal = principal.repeat(i)
                     self.items[recordType][newprincipal.shortNames[0]] = newprincipal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120531/c45c0e65/attachment.html>


More information about the calendarserver-changes mailing list