Adam Tauno Williams
-
2013-10-24
- labels: vevent, appointment, allday, timezone, caldav --> vevent, appointment, allday, timezone, caldav, Calendar
Parsing all-day style appointments fails due to the fact that dates do not have timezones.
DEBUG:context:duration of appointment::get was 0.015 DEBUG:parse:ICALENDAR DATA: {BEGIN:VCALENDAR CALSCALE:GREGORIAN PRODID:-//Ximian//NONSGML Evolution Calendar//EN VERSION:2.0 BEGIN:VEVENT UID:20110310T232229Z-13243-100-10133-3@linux-yu4c.site DTSTAMP:20110310T232229Z DTSTART;VALUE=DATE:20110310 DTEND;VALUE=DATE:20110311 TRANSP:TRANSPARENT SEQUENCE:2 SUMMARY:summary - all day LOCATION:summary - location DESCRIPTION:location - description CLASS:PUBLIC CREATED:20110310T232304Z LAST-MODIFIED:20110310T232304Z BEGIN:VALARM X-EVOLUTION-ALARM-UID:20110310T232304Z-13340-100-1-200@linux-yu4c.site DESCRIPTION:summary - all day ACTION:DISPLAY TRIGGER;VALUE=DURATION;RELATED=START:-PT1H END:VALARM END:VEVENT END:VCALENDAR} DEBUG:parse:Parsed components, requesting first... DEBUG:parse:iCalendar data is a VCALENDAR container. ERROR:parse:'NoneType' object is not iterable Traceback (most recent call last): File "/home/awilliam/Documents/Works/Coils.MD/Branches/whitemice/src/coils/core/icalendar/parse.py", line 97, in Parse result.extend(Parser._parse_vevent1(item, ctx, log, **params)) File "/home/awilliam/Documents/Works/Coils.MD/Branches/whitemice/src/coils/core/icalendar/parse.py", line 130, in _parse_vevent1 return Parser._parse_all_day_vevent(vevent, ctx, log, **params) File "/home/awilliam/Documents/Works/Coils.MD/Branches/whitemice/src/coils/core/icalendar/parse.py", line 138, in _parse_all_day_vevent first_start, timezone = get_timezoned_value(vevent.dtstart) TypeError: 'NoneType' object is not iterable ERROR:http:Unable to parse ics data into components. Traceback (most recent call last): File "/home/awilliam/Documents/Works/Coils.MD/Branches/whitemice/src/coils/net/handler.py", line 166, in process_request getattr(handler, 'do_{0}'.format(self.command))(self.request_name) File "/home/awilliam/Documents/Works/Coils.MD/Branches/whitemice/src/coils/protocol/dav/groupware/calendarfolder.py", line 240, in do_PUT (object_id, payload_format, appointment, payload_values) = self.get_appointment_for_key_and_content(name, payload) File "/home/awilliam/Documents/Works/Coils.MD/Branches/whitemice/src/coils/protocol/dav/groupware/groupwarefolder.py", line 207, in get_appointment_for_key_and_content payload_values = VEvent_Parser.Parse(payload, self.context) File "/home/awilliam/Documents/Works/Coils.MD/Branches/whitemice/src/coils/core/icalendar/parse.py", line 109, in Parse raise CoilsException('Unable to parse ics data into components.') CoilsException: Unable to parse ics data into components. DEBUG:context:Closing context 5bd25147-353b-4dcf-84fc-10be0405167b