From andrew.degtiariov at gmail.com Tue Jan 19 16:26:08 2010 From: andrew.degtiariov at gmail.com (Andrew Degtiariov) Date: Tue, 19 Jan 2010 17:26:08 +0200 Subject: [icalendar-dev] DURATION_REGEX in prop.py Message-ID: <5d1b76f61001190726l5b48e4bbr9f6d339bbb1b8e17@mail.gmail.com> Hello! I found slight noncompliance of the RFC in parsing DURATION type in icalendar package. By the RFC both week and datetime parts may exists ( http://www.kanzaki.com/docs/ical/duration-t.html) but icalendar accepted only one of them (I'm got ValueError while parse ical file from Google Calendar): .... File "build\bdist.win32\egg\icalendar\prop.py", line 482, in from_ical ValueError: Invalid iCalendar duration: P3W4DT10H50M So I have made simple patch and hope it will be applied to the icalendar code. Another question: do you planning further releases? -- Andrew Degtiariov DA-RIPE -------------- next part -------------- An HTML attachment was scrubbed... URL: http://codespeak.net/pipermail/icalendar-dev/attachments/20100119/2c03eb40/attachment.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: prop.py.diff Type: application/octet-stream Size: 1457 bytes Desc: not available Url : http://codespeak.net/pipermail/icalendar-dev/attachments/20100119/2c03eb40/attachment.obj