[CalendarServer-changes] [3297] CalendarServer/trunk/calendarserver/tools/export.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Oct 30 19:40:23 PDT 2008


Revision: 3297
          http://trac.macosforge.org/projects/calendarserver/changeset/3297
Author:   cdaboo at apple.com
Date:     2008-10-30 19:40:23 -0700 (Thu, 30 Oct 2008)
Log Message:
-----------
PRODID is a required property.

Modified Paths:
--------------
    CalendarServer/trunk/calendarserver/tools/export.py

Modified: CalendarServer/trunk/calendarserver/tools/export.py
===================================================================
--- CalendarServer/trunk/calendarserver/tools/export.py	2008-10-31 02:36:42 UTC (rev 3296)
+++ CalendarServer/trunk/calendarserver/tools/export.py	2008-10-31 02:40:23 UTC (rev 3297)
@@ -19,9 +19,10 @@
 import os
 import sys
 from getopt import getopt, GetoptError
-from os.path import dirname, abspath, join
+from os.path import dirname, abspath
 
-from twistedcaldav.ical import Component as iComponent, Property as iProperty
+from twistedcaldav.ical import Component as iComponent, Property as iProperty,\
+    iCalendarProductID
 from twistedcaldav.resource import isCalendarCollectionResource
 from twistedcaldav.static import CalDAVFile, CalendarHomeFile
 from twistedcaldav.directory.directory import DirectoryService, DirectoryRecord
@@ -101,6 +102,7 @@
     try:
         calendar = iComponent("VCALENDAR")
         calendar.addProperty(iProperty("VERSION", "2.0"))
+        calendar.addProperty(iProperty("PRODID", iCalendarProductID))
 
         uids  = set()
         tzids = set()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20081030/c805f192/attachment.html>


More information about the calendarserver-changes mailing list