[CalendarServer-changes] [15078] CalendarServer/trunk/contrib/performance/loadtest/ical.py
source_changes at macosforge.org
source_changes at macosforge.org
Sat Aug 29 10:58:42 PDT 2015
Revision: 15078
http://trac.calendarserver.org//changeset/15078
Author: cdaboo at apple.com
Date: 2015-08-29 10:58:42 -0700 (Sat, 29 Aug 2015)
Log Message:
-----------
Calendar displayname may be empty so use last URL segment.
Modified Paths:
--------------
CalendarServer/trunk/contrib/performance/loadtest/ical.py
Modified: CalendarServer/trunk/contrib/performance/loadtest/ical.py
===================================================================
--- CalendarServer/trunk/contrib/performance/loadtest/ical.py 2015-08-29 16:37:41 UTC (rev 15077)
+++ CalendarServer/trunk/contrib/performance/loadtest/ical.py 2015-08-29 17:58:42 UTC (rev 15078)
@@ -210,7 +210,10 @@
self.changeToken = changeToken
self.events = {}
+ if self.name is None:
+ self.name = self.url.rstrip("/").split("/")[-1]
+
def serialize(self):
"""
Create a dict of the data so we can serialize as JSON.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20150829/a80c6fcf/attachment.html>
More information about the calendarserver-changes
mailing list