[CalendarServer-changes] [7683] CalendarServer/trunk/twistedcaldav
source_changes at macosforge.org
source_changes at macosforge.org
Mon Jun 27 17:10:59 PDT 2011
Revision: 7683
http://trac.macosforge.org/projects/calendarserver/changeset/7683
Author: sagen at apple.com
Date: 2011-06-27 17:10:59 -0700 (Mon, 27 Jun 2011)
Log Message:
-----------
Decode SUMMARY when generating IMIP message
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/mail.py
CalendarServer/trunk/twistedcaldav/test/test_mail.py
Modified: CalendarServer/trunk/twistedcaldav/mail.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/mail.py 2011-06-27 23:46:33 UTC (rev 7682)
+++ CalendarServer/trunk/twistedcaldav/mail.py 2011-06-28 00:10:59 UTC (rev 7683)
@@ -1248,7 +1248,7 @@
results['month'] = dtStart.getMonth()
results['day'] = dtStart.getDay()
- summary = component.propertyValue("SUMMARY")
+ summary = component.propertyValue("SUMMARY").decode("utf-8")
if summary is None:
summary = ""
results['summary'] = summary
Modified: CalendarServer/trunk/twistedcaldav/test/test_mail.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/test/test_mail.py 2011-06-27 23:46:33 UTC (rev 7682)
+++ CalendarServer/trunk/twistedcaldav/test/test_mail.py 2011-06-28 00:10:59 UTC (rev 7683)
@@ -253,7 +253,7 @@
ATTENDEE;CN=Th\xe9 Attendee;CUTYPE=INDIVIDUAL;PARTSTAT=NEEDS-ACTION;RSVP=TRUE:mailto:attendee at example.com
ATTENDEE;CN=The Organizer;CUTYPE=INDIVIDUAL;EMAIL=organizer at example.com;PARTSTAT=ACCEPTED:urn:uuid:C3B38B00-4166-11DD-B22C-A07C87E02F6A
ORGANIZER;CN=The Organizer;EMAIL=organizer at example.com:urn:uuid:C3B38B00-4166-11DD-B22C-A07C87E02F6A
-SUMMARY:testing outbound( )
+SUMMARY:t\xe9sting outbound( )
END:VEVENT
END:VCALENDAR
""",
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110627/9f615f76/attachment-0001.html>
More information about the calendarserver-changes
mailing list