Package: python-dateutil
Version: 1.5-1local1
Severity: normal
Tags: upstream patch
Dear Maintainer,
python-dateutil 1.5 raises an exception "unsupported DTSTART parm: ..." if the
DTSTART entry in a DST rrule in a time zone definition has any parameter.
Apparently there are libraries, notably SabreDAV, which always serialize
DTSTART with the actual value type parameter. While the vcalendar spec
specifies that DTSTART in a DST rrule must be of type DATE-TIME, the grammar
refers to the generic dtstart production rule, and there is no additional
language explicitly prohibiting a value type parameter at this place, therefore
dateutil should accept a VALUE=DATE-TIME parameter at this place.
The following patch fixes the problem, obviously:
--- python-dateutil-1.5.orig/dateutil/rrule.py
+++ python-dateutil-1.5/dateutil/rrule.py
@@ -1049,7 +1049,8 @@ class _rrulestr:
exdatevals.append(value)
elif name == "DTSTART":
for parm in parms:
- raise ValueError, "unsupported DTSTART parm: "+parm
+ if parm != "VALUE=DATE-TIME":
+ raise ValueError, "unsupported DTSTART parm:
"+parm
if not parser:
from dateutil import parser
dtstart = parser.parse(value, ignoretz=ignoretz,
There is of course still room for improvement.
J.Pietschmann
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages python-dateutil depends on:
ii python 2.7.2-10
ii python2.6 2.6.7-4
ii python2.7 2.7.3~rc2-2.1
ii tzdata 2012c-1
python-dateutil recommends no packages.
python-dateutil suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]