Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Don't raise in validation if there are defined-but-unused time zone c…

…omponents, since it's not illegal.

git-svn-id: https://svn.calendarserver.org/repository/calendarserver/CalendarServer/trunk@279 e27351fd-9f3e-4f54-a53b-843176b1656c
  • Loading branch information
wsanchez committed Oct 19, 2006
1 parent de0024b commit bab172dbc3a40b72fa8e03bf42d448e69279217b
Showing with 6 additions and 3 deletions.
  1. +6 −3 twistedcaldav/ical.py
@@ -793,12 +793,15 @@ def validateComponentsForCalDAV(self, method):

#
# FIXME:
# This test is not part of the spec; comment out unless debugging, as it
# appears to be legal (but goofy?) to have extra timezone components.
# This test is not part of the spec; it appears to be legal (but
# goofy?) to have extra timezone components.
#
for timezone in timezones:
if timezone not in timezone_refs:
raise ValueError("Timezone %s is not referenced by any non-timezone component" % (timezone,))
#raise ValueError(
log.msg(
"Timezone %s is not referenced by any non-timezone component" % (timezone,)
)

def transformAllFromNative(self):
self._vobject = self._vobject.transformFromNative()

0 comments on commit bab172d

Please sign in to comment.
You can’t perform that action at this time.