[icalendar-dev] Error in treatment of the EXDATE

Luthiger Stoll Benno benno.luthiger at id.ethz.ch
Tue Nov 6 14:41:34 CET 2007


Looking at the code (prop.TypesFactory) I see that the EXDATE (and the
RDATE) property is treated as a single date-time value and processed
using the vDDDTypes factory. The iCalendar product does not allow for
list of date-time values. (Well, it allows such  lists, but doesn't care
of all but the first value.) This contradicts the RFC2445 specs which
clearly allow for a list of (comma separated) of date-time values.

 

I propose to create a new class vDDDLists to handle lists of vDDDTypes
values.

 

I could implement this solution and provide a patch.

Is it possible to apply the patch and to create a new release of the
iCalendar product?

 

Regards,

Benno

 

 

From: icalendar-dev-bounces at codespeak.net
[mailto:icalendar-dev-bounces at codespeak.net] On Behalf Of Luthiger Stoll
Benno
Sent: Donnerstag, 1. November 2007 15:29
To: icalendar-dev at codespeak.net
Subject: [icalendar-dev] Error in treatment of the EXDATE

 

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/20071106/e113abc0/attachment-0001.htm 


More information about the icalendar-dev mailing list