[CalendarServer-changes] [9397] CalendarServer/branches/release/CalendarServer-4.1-dev/twistedcaldav /__init__.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Jun 28 11:52:31 PDT 2012


Revision: 9397
          http://trac.macosforge.org/projects/calendarserver/changeset/9397
Author:   cdaboo at apple.com
Date:     2012-06-28 11:52:30 -0700 (Thu, 28 Jun 2012)
Log Message:
-----------
Fix issue with private comments and \-escaped characters.

Modified Paths:
--------------
    CalendarServer/branches/release/CalendarServer-4.1-dev/twistedcaldav/__init__.py

Modified: CalendarServer/branches/release/CalendarServer-4.1-dev/twistedcaldav/__init__.py
===================================================================
--- CalendarServer/branches/release/CalendarServer-4.1-dev/twistedcaldav/__init__.py	2012-06-27 20:55:52 UTC (rev 9396)
+++ CalendarServer/branches/release/CalendarServer-4.1-dev/twistedcaldav/__init__.py	2012-06-28 18:52:30 UTC (rev 9397)
@@ -57,5 +57,14 @@
     "Schedule-Tag": (str, singleHeader),
 })
 
+
+# Do some PyCalendar init
 from pycalendar.calendar import PyCalendar
+from pycalendar.property import PyCalendarProperty
+from pycalendar.value import PyCalendarValue
+
 PyCalendar.setPRODID("-//CALENDARSERVER.ORG//NONSGML Version 1//EN")
+
+# These are properties we use directly and we want the default value type set for TEXT
+PyCalendarProperty.sDefaultValueTypeMap["X-CALENDARSERVER-PRIVATE-COMMENT"] = PyCalendarValue.VALUETYPE_TEXT
+PyCalendarProperty.sDefaultValueTypeMap["X-CALENDARSERVER-ATTENDEE-COMMENT"] = PyCalendarValue.VALUETYPE_TEXT
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120628/7661a08c/attachment.html>


More information about the calendarserver-changes mailing list