[CalendarServer-changes] [11689] CalendarServer/branches/users/cdaboo/json/twistedcaldav/ical.py

source_changes at macosforge.org source_changes at macosforge.org
Sat Sep 14 06:37:14 PDT 2013


Revision: 11689
          http://trac.calendarserver.org//changeset/11689
Author:   cdaboo at apple.com
Date:     2013-09-14 06:37:14 -0700 (Sat, 14 Sep 2013)
Log Message:
-----------
Normalize VOTER property value and cu-address values in sub-components of VPOLL.

Modified Paths:
--------------
    CalendarServer/branches/users/cdaboo/json/twistedcaldav/ical.py

Modified: CalendarServer/branches/users/cdaboo/json/twistedcaldav/ical.py
===================================================================
--- CalendarServer/branches/users/cdaboo/json/twistedcaldav/ical.py	2013-09-13 01:17:55 UTC (rev 11688)
+++ CalendarServer/branches/users/cdaboo/json/twistedcaldav/ical.py	2013-09-14 13:37:14 UTC (rev 11689)
@@ -3198,7 +3198,8 @@
                 continue
             for prop in itertools.chain(
                 component.properties("ORGANIZER"),
-                component.properties("ATTENDEE")
+                component.properties("ATTENDEE"),
+                component.properties("VOTER")
             ):
 
                 # Check that we can lookup this calendar user address - if not
@@ -3296,7 +3297,11 @@
                     else:
                         prop.removeParameter("EMAIL")
 
+            # For VPOLL also do immediate children
+            if component.name() == "VPOLL":
+                component.normalizeCalendarUserAddresses(lookupFunction, principalFunction, toUUID)
 
+
     def allPerUserUIDs(self):
 
         results = set()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130914/b64ca459/attachment.html>


More information about the calendarserver-changes mailing list