Modified: CalendarServer/trunk/twistedcaldav/directory/xmlaccountsparser.py (9318 => 9319)
--- 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