[CalendarServer-changes] [14225] CalendarServer/trunk

source_changes at macosforge.org source_changes at macosforge.org
Thu Dec 11 13:17:07 PST 2014


Revision: 14225
          http://trac.calendarserver.org//changeset/14225
Author:   cdaboo at apple.com
Date:     2014-12-11 13:17:06 -0800 (Thu, 11 Dec 2014)
Log Message:
-----------
Automatically fix broken GEO property values.

Modified Paths:
--------------
    CalendarServer/trunk/requirements-stable.txt
    CalendarServer/trunk/twistedcaldav/test/test_icalendar.py

Modified: CalendarServer/trunk/requirements-stable.txt
===================================================================
--- CalendarServer/trunk/requirements-stable.txt	2014-12-11 21:15:58 UTC (rev 14224)
+++ CalendarServer/trunk/requirements-stable.txt	2014-12-11 21:17:06 UTC (rev 14225)
@@ -7,7 +7,7 @@
 -e .
 -e svn+http://svn.calendarserver.org/repository/calendarserver/twext/trunk@14220#egg=twextpy
 -e svn+http://svn.calendarserver.org/repository/calendarserver/PyKerberos/trunk@13420#egg=kerberos
--e svn+http://svn.calendarserver.org/repository/calendarserver/PyCalendar/trunk@14218#egg=pycalendar
+-e svn+http://svn.calendarserver.org/repository/calendarserver/PyCalendar/trunk@14224#egg=pycalendar
 
 # Specify specific versions of our dependencies so that we're all testing the same config.
 

Modified: CalendarServer/trunk/twistedcaldav/test/test_icalendar.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/test/test_icalendar.py	2014-12-11 21:15:58 UTC (rev 14224)
+++ CalendarServer/trunk/twistedcaldav/test/test_icalendar.py	2014-12-11 21:17:06 UTC (rev 14225)
@@ -11952,3 +11952,27 @@
             result = cal.reconcileGroupAttendees(propMap)
             self.assertEqual(result, changed, msg="{}: {}".format(title, "Result mismatch"))
             self.assertEqual(normalize_iCalStr(cal), normalize_iCalStr(txt_result), msg="{}:{}".format(title, diff_iCalStrs(cal, txt_result)))
+
+
+    def test_brokenGEO(self):
+        """
+        Make sure a broken GEO property can be parsed.
+        """
+
+        data = """BEGIN:VCALENDAR
+VERSION:2.0
+PRODID:-//CALENDARSERVER.ORG//NONSGML Version 1//EN
+BEGIN:VEVENT
+UID:12345-67890
+DTSTART;VALUE=DATE:20080601
+DURATION:PT1H
+DTSTAMP:20080601T120000Z
+GEO:-12.345\\;67.89
+SUMMARY:Test
+END:VEVENT
+END:VCALENDAR
+"""
+
+        cal = Component.fromString(data)
+        self.assertTrue(cal is not None)
+        self.assertTrue(cal.mainComponent().hasProperty("GEO"))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20141211/951b9aa1/attachment.html>


More information about the calendarserver-changes mailing list