From benno.luthiger at id.ethz.ch Thu Nov 1 15:29:06 2007 From: benno.luthiger at id.ethz.ch (Luthiger Stoll Benno) Date: Thu, 1 Nov 2007 15:29:06 +0100 Subject: [icalendar-dev] Error in treatment of the EXDATE Message-ID: 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 From benno.luthiger at id.ethz.ch Tue Nov 6 14:41:34 2007 From: benno.luthiger at id.ethz.ch (Luthiger Stoll Benno) Date: Tue, 6 Nov 2007 14:41:34 +0100 Subject: [icalendar-dev] Error in treatment of the EXDATE In-Reply-To: References: Message-ID: 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 From regebro at gmail.com Tue Nov 6 18:18:48 2007 From: regebro at gmail.com (Lennart Regebro) Date: Tue, 6 Nov 2007 18:18:48 +0100 Subject: [icalendar-dev] Error in treatment of the EXDATE In-Reply-To: References: Message-ID: <319e029f0711060918x7219742cjfe761b0a042d429a@mail.gmail.com> On 11/6/07, Luthiger Stoll Benno wrote: > 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? Absolutely. -- Lennart Regebro: Zope and Plone consulting. http://www.colliberty.com/ +33 661 58 14 64