Changeset 3276

Show
Ignore:
Timestamp:
04/17/08 08:57:28 (5 months ago)
Author:
swolter
Message:

Fixed bug #727, which corrected a minor, but fatal glitch in the syntax
and prevented recurring events with explicit mention of the recurrence
day to be uploaded to a moto phone with simple event interface.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/moto-sync/motosync.py

    r3272 r3276  
    568568    # add in the exception dates and rules (if any) 
    569569    for node in exdates: 
    570         for e in getElementsByTagNames(node, 'Content'): 
     570        for e in getElementsByTagNames(node, 'Content', []): 
    571571            ruleset.exdate(dateutil.parser.parse(getXMLText(e))) 
    572572 
     
    14141414 
    14151415        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] or 
     1418            rule['repeat_end']): 
    14171419            raise UnsupportedDataError("Recursion rule not supported by simple event format") 
    14181420