[CalendarServer-changes] [8034] CalendarServer/trunk/contrib/performance/loadtest/ical.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Aug 31 13:01:44 PDT 2011


Revision: 8034
          http://trac.macosforge.org/projects/calendarserver/changeset/8034
Author:   sagen at apple.com
Date:     2011-08-31 13:01:41 -0700 (Wed, 31 Aug 2011)
Log Message:
-----------
iCal doesn't principal-property-search on the attendee you've already selected

Modified Paths:
--------------
    CalendarServer/trunk/contrib/performance/loadtest/ical.py

Modified: CalendarServer/trunk/contrib/performance/loadtest/ical.py
===================================================================
--- CalendarServer/trunk/contrib/performance/loadtest/ical.py	2011-08-31 16:55:38 UTC (rev 8033)
+++ CalendarServer/trunk/contrib/performance/loadtest/ical.py	2011-08-31 20:01:41 UTC (rev 8034)
@@ -677,11 +677,11 @@
 
 
     def addEventAttendee(self, href, attendee):
-        name = attendee.parameterValue('CN').encode("utf-8")
 
         # Temporarily use some non-test names (some which will return
         # many results, and others which will return fewer) because the
         # test account names are all too similar
+        # name = attendee.parameterValue('CN').encode("utf-8")
         # prefix = name[:4].lower()
         prefix = random.choice(["chris", "cyru", "dre", "eric", "morg",
             "well", "wilfr", "witz"])
@@ -703,20 +703,6 @@
                     'lastname': prefix,
                     }))
         d.addCallback(readBody)
-        def narrowed(ignored):
-            # Next just learn about the one name we selected.
-            d = self._request(
-                MULTI_STATUS, 'REPORT', self.root + 'principals/',
-                Headers({'content-type': ['text/xml']}),
-                StringProducer(self._USER_LIST_PRINCIPAL_PROPERTY_SEARCH % {
-                        'displayname': name,
-                        'email': name,
-                        'firstname': name,
-                        'lastname': name,
-                        }))
-            d.addCallback(readBody)
-            return d
-        d.addCallback(narrowed)
         def specific(ignored):
             # Now learn about the attendee's availability
             return self.requestAvailability(
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110831/4773f8b3/attachment-0001.html>


More information about the calendarserver-changes mailing list