[CalendarServer-changes] [3166] CalendarServer/trunk/twistedcaldav/caldavxml.py
source_changes at macosforge.org
source_changes at macosforge.org
Thu Oct 16 20:37:48 PDT 2008
Revision: 3166
http://trac.macosforge.org/projects/calendarserver/changeset/3166
Author: cdaboo at apple.com
Date: 2008-10-16 20:37:48 -0700 (Thu, 16 Oct 2008)
Log Message:
-----------
Verify that we have a proper VTIMEZONE component.
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/caldavxml.py
Modified: CalendarServer/trunk/twistedcaldav/caldavxml.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/caldavxml.py 2008-10-17 02:20:51 UTC (rev 3165)
+++ CalendarServer/trunk/twistedcaldav/caldavxml.py 2008-10-17 03:37:48 UTC (rev 3166)
@@ -27,7 +27,7 @@
import datetime
-from vobject.icalendar import utc
+from vobject.icalendar import utc, TimezoneComponent
from twisted.web2.dav import davxml
@@ -152,7 +152,10 @@
found = False
for subcomponent in calendar.subcomponents():
- if subcomponent.name() == "VTIMEZONE":
+ if (
+ subcomponent.name() == "VTIMEZONE" and
+ isinstance(subcomponent._vobject, TimezoneComponent)
+ ):
if found:
return False
else:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20081016/d431b857/attachment.html
More information about the calendarserver-changes
mailing list