Ticket #727: diff
| File diff, 1.0 kB (added by swolter, 4 months ago) |
|---|
-
motosync.py
old new 567 567 568 568 # add in the exception dates and rules (if any) 569 569 for node in exdates: 570 for e in getElementsByTagNames(node, 'Content' ):570 for e in getElementsByTagNames(node, 'Content', []): 571 571 ruleset.exdate(dateutil.parser.parse(getXMLText(e))) 572 572 573 573 for node in exrules: … … 1413 1413 exrules = node.getElementsByTagName('ExceptionRule') 1414 1414 1415 1415 rule = xml_rrule_to_moto(rrules, exdates, exrules, self.eventdt, False) 1416 if (rule['repeat_every'] not in [0, 1] or rule['repeat_day'] != 0 or rule['repeat_end']): 1416 if (rule['repeat_every'] not in [0, 1] or 1417 rule['repeat_day'] not in [0, 64] 1418 or rule['repeat_end']): 1417 1419 raise UnsupportedDataError("Recursion rule not supported by simple event format") 1418 1420 1419 1421 self.repeat_type = rule['repeat_type']
