Revision: 9319 http://trac.macosforge.org/projects/calendarserver/changeset/9319 Author: cdaboo@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