# HG changeset patch # User Paul Boddie # Date 1423601632 -3600 # Node ID e13484e003c5bf3c66490bcd4618482707b5360d # Parent 6a1962f0e6fd98fccb3b04d6541b6da465905010 Changed get_rule to split an iCalendar RRULE value into the required pieces. diff -r 6a1962f0e6fd -r e13484e003c5 vRecurrence.py --- a/vRecurrence.py Sat Jan 31 23:01:22 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