[icalendar-dev] Error in treatment of the EXDATE

Luthiger Stoll Benno benno.luthiger at id.ethz.ch
Thu Nov 1 15:29:06 CET 2007


Hello

I've found out the following error concerning the treatment of the
EXDATE element.
According to the RFC2445 specs, the following statement is allowed:
===
BEGIN:VEVENT
...
EXDATE:20071103T110000Z,20071104T110000Z,20071105T110000Z
...
END:VEVENT
===

When I use iCalender to interpret this statement, however, I get the
following result:
===
>>> calendar = Calendar.from_string(ics)
>>> events = calendar.walk('VEVENT')
>>> for event in events:
...     print event.decoded('EXDATE')

2007-11-03 11:00:00+00:00
===
Whereas I expect a list of datetime values, the icalendar object returns
only the first value.

Regards,
Benno Luthiger

______________________________________
ETH Zurich
Benno Luthiger
IT Services
WEP J 14, Weinbergstrasse 109
8092 Zurich, Switzerland

Tel: +41 44 632 57 65
______________________________________


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codespeak.net/pipermail/icalendar-dev/attachments/20071101/b806c170/attachment.htm 


More information about the icalendar-dev mailing list