# HG changeset patch # User Paul Boddie # Date 1423601632 -3600 # Node ID ba6f36a05ef5ca97cb5d9f84819517a6498bfcc7 # Parent a6d9559df15c2d09832560bbe2a1b50bc859bbad Changed get_rule to split an iCalendar RRULE value into the required pieces. diff -r a6d9559df15c -r ba6f36a05ef5 vRecurrence.py --- a/vRecurrence.py Tue Feb 10 21:34:26 2015 +0100 +++ b/vRecurrence.py Tue Feb 10 21:53:52 2015 +0100 @@ -603,7 +603,14 @@ return connect_selectors(combine_datetime_with_qualifiers(dt, qualifiers)) def get_rule(dt, rule): - qualifiers = get_qualifiers(rule) + + """ + Using the given initial datetime 'dt', interpret the 'rule' (a semicolon- + separated collection of "key=value" strings), and return the resulting + selector object. + """ + + qualifiers = get_qualifiers(rule.split(";")) return get_selector(dt, qualifiers) # vim: tabstop=4 expandtab shiftwidth=4