[CalendarServer-changes] [7693] CalendarServer/trunk/calendarserver/tools/export.py
source_changes at macosforge.org
source_changes at macosforge.org
Thu Jun 30 09:25:56 PDT 2011
Revision: 7693
http://trac.macosforge.org/projects/calendarserver/changeset/7693
Author: cdaboo at apple.com
Date: 2011-06-30 09:25:55 -0700 (Thu, 30 Jun 2011)
Log Message:
-----------
PyCalendar no longer adds timezones by default for str().
Modified Paths:
--------------
CalendarServer/trunk/calendarserver/tools/export.py
Modified: CalendarServer/trunk/calendarserver/tools/export.py
===================================================================
--- CalendarServer/trunk/calendarserver/tools/export.py 2011-06-30 16:09:12 UTC (rev 7692)
+++ CalendarServer/trunk/calendarserver/tools/export.py 2011-06-30 16:25:55 UTC (rev 7693)
@@ -270,13 +270,11 @@
calendar.ownerCalendarHome().uid(), True)
for sub in evt.subcomponents():
if sub.name() != 'VTIMEZONE':
- # Omit all VTIMEZONE components, since PyCalendar will
- # helpfully re-include all necessary VTIMEZONEs when we call
- # __str__; see pycalendar.calendar.PyCalendar.generate() and
- # .includeTimezones().
+ # Omit all VTIMEZONE components here - we will include them later
+ # when we serialize the whole calendar.
comp.addComponent(sub)
- fileobj.write(str(comp))
+ fileobj.write(comp.getText())
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110630/a6e2662a/attachment.html>
More information about the calendarserver-changes
mailing list