#287: Breaks with python-vobject 0.6.6
-----------------------------+----------------------------------------------
 Reporter:  [EMAIL PROTECTED]  |        Owner:  [EMAIL PROTECTED]
     Type:  Defect           |       Status:  new             
 Priority:  2: Expected      |    Milestone:  2.x             
Component:  Calendar Server  |      Version:                  
 Severity:  Other            |   Resolution:                  
 Keywords:                   |  
-----------------------------+----------------------------------------------
Comment (by [EMAIL PROTECTED]):

 I'm sorry, I could've sworn I sent an email about this change to Cyrus,
 but looking back at my sent mail it looks like I didn't.

 vobject uses lists for pretty much everything, including parameters.  It
 was a bug (that was causing exceptions in certain use cases) that X-VOBJ-
 ORIGINAL-TZID was being stored as a plain value, not a single-valued-list.

 I was going to say: to fix this, use getattr(property,
 'x_vobj_original_tzid_param', None) instead of property.params().get()

 but I'm not sure what's going on with params being a function.  So
 alternately, do property.params().get('X-VOBJ-ORIGINAL-TZID', [None])[0]

-- 
Ticket URL: <http://trac.calendarserver.org/ticket/287#comment:3>
CalendarServer </>
HTTP/WebDAV/CalDAV Server
_______________________________________________
calendarserver-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/calendarserver-dev

Reply via email to