[CalendarServer-changes] [9358] CalendarServer/branches/release/CalendarServer-4.1-dev/lib-patches
source_changes at macosforge.org
source_changes at macosforge.org
Tue Jun 12 13:25:26 PDT 2012
Revision: 9358
http://trac.macosforge.org/projects/calendarserver/changeset/9358
Author: sagen at apple.com
Date: 2012-06-12 13:25:26 -0700 (Tue, 12 Jun 2012)
Log Message:
-----------
Fix bug with GEO property
Added Paths:
-----------
CalendarServer/branches/release/CalendarServer-4.1-dev/lib-patches/pycalendar/
CalendarServer/branches/release/CalendarServer-4.1-dev/lib-patches/pycalendar/pycalendar.patch
Added: CalendarServer/branches/release/CalendarServer-4.1-dev/lib-patches/pycalendar/pycalendar.patch
===================================================================
--- CalendarServer/branches/release/CalendarServer-4.1-dev/lib-patches/pycalendar/pycalendar.patch (rev 0)
+++ CalendarServer/branches/release/CalendarServer-4.1-dev/lib-patches/pycalendar/pycalendar.patch 2012-06-12 20:25:26 UTC (rev 9358)
@@ -0,0 +1,35 @@
+Index: src/pycalendar/value.py
+===================================================================
+--- src/pycalendar/value.py (revision 191)
++++ src/pycalendar/value.py (working copy)
+@@ -71,7 +71,7 @@
+ if created:
+ return created()
+ else:
+- return clz._typeMap.get("UNKNOWN")(type)
++ return clz._typeMap.get(PyCalendarValue.VALUETYPE_UNKNOWN)(type)
+
+ def getType(self):
+ raise NotImplementedError
+Index: src/pycalendar/tests/test_property.py
+===================================================================
+--- src/pycalendar/tests/test_property.py (revision 191)
++++ src/pycalendar/tests/test_property.py (working copy)
+@@ -115,3 +115,17 @@
+ for propname, propvalue, result in test_data:
+ prop = PyCalendarProperty(name=propname, value=propvalue)
+ self.assertEqual(str(prop), result)
++
++ def testGEOValueRoundtrip(self):
++
++ data = "GEO:123.456,789.101"
++ prop = PyCalendarProperty()
++ prop.parse(data)
++ self.assertEqual(str(prop), data + "\r\n")
++
++ def testUnknownValueRoundtrip(self):
++
++ data = "X-FOO:Text, not escaped"
++ prop = PyCalendarProperty()
++ prop.parse(data)
++ self.assertEqual(str(prop), data + "\r\n")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120612/835deb36/attachment.html>
More information about the calendarserver-changes
mailing list