[Vobject] EXDATE problem

Jeffrey Harris jeffrey at osafoundation.org
Wed Feb 11 15:22:36 CST 2009


Hi Arun,

> clip of the code is
> parsedICAL = vobject.readOne(x)
> print val.vevent.exdate
> 
> but how can i access the next EXDATE element

The .exdate form accesses the first of multiple elements, for
convenience.  If you want the full list, append _list, so:

print val.vevent.exdate_list

will do what you want.

Note that if you access

val.vevent.rruleset

the resulting dateutil rruleset will know about all your exdates, so if
you just want to expand the rule, you can just iterate over that and not
fiddle with individual bits associated with the recurrence rule.

Sincerely,
Jeffrey


More information about the VObject mailing list