[CalendarServer-changes] [15707] CalendarServer/trunk
source_changes at macosforge.org
source_changes at macosforge.org
Sat Jun 25 07:26:19 PDT 2016
Revision: 15707
http://trac.calendarserver.org//changeset/15707
Author: cdaboo at apple.com
Date: 2016-06-25 07:26:18 -0700 (Sat, 25 Jun 2016)
Log Message:
-----------
Whitespace.
Modified Paths:
--------------
CalendarServer/trunk/calendarserver/push/applepush.py
CalendarServer/trunk/calendarserver/push/test/test_notifier.py
CalendarServer/trunk/contrib/performance/loadtest/ical.py
CalendarServer/trunk/contrib/performance/loadtest/sim.py
CalendarServer/trunk/contrib/performance/loadtest/test_amphub.py
CalendarServer/trunk/contrib/performance/loadtest/test_ical.py
CalendarServer/trunk/contrib/performance/loadtest/test_profiles.py
CalendarServer/trunk/txdav/caldav/datastore/sql.py
Modified: CalendarServer/trunk/calendarserver/push/applepush.py
===================================================================
--- CalendarServer/trunk/calendarserver/push/applepush.py 2016-06-25 14:24:48 UTC (rev 15706)
+++ CalendarServer/trunk/calendarserver/push/applepush.py 2016-06-25 14:26:18 UTC (rev 15707)
@@ -178,7 +178,6 @@
service.MultiService.stopService(self)
-
@inlineCallbacks
def enqueue(
self, transaction, pushKey, dataChangedTimestamp=None,
Modified: CalendarServer/trunk/calendarserver/push/test/test_notifier.py
===================================================================
--- CalendarServer/trunk/calendarserver/push/test/test_notifier.py 2016-06-25 14:24:48 UTC (rev 15706)
+++ CalendarServer/trunk/calendarserver/push/test/test_notifier.py 2016-06-25 14:26:18 UTC (rev 15707)
@@ -161,7 +161,6 @@
-
class StubDistributor(object):
def __init__(self):
self.reset()
Modified: CalendarServer/trunk/contrib/performance/loadtest/ical.py
===================================================================
--- CalendarServer/trunk/contrib/performance/loadtest/ical.py 2016-06-25 14:24:48 UTC (rev 15706)
+++ CalendarServer/trunk/contrib/performance/loadtest/ical.py 2016-06-25 14:26:18 UTC (rev 15707)
@@ -926,7 +926,6 @@
returnValue((newCalendars.values(), notificationCollection, newCalendarHomeToken))
-
def timeRangeQuery(self, url, start, end):
requestBody = """<?xml version="1.0" encoding="utf-8" ?>
@@ -967,7 +966,7 @@
@inlineCallbacks
def deepRefresh(self):
- calendars, notificationCollection, calendarHomeToken, results = yield self._calendarHomePropfind(self.calendarHomeHref)
+ calendars, _ignore_notificationCollection, _ignore_calendarHomeToken, _ignore_results = yield self._calendarHomePropfind(self.calendarHomeHref)
for calendar in calendars:
yield self._propfind(
calendar.url,
@@ -1732,13 +1731,12 @@
connect(GAIEndpoint(self.reactor, host, port), factory)
-
@inlineCallbacks
def _receivedPush(self, inboundID, dataChangedTimestamp, priority=5):
if not self._busyWithPush:
self._busyWithPush = True
try:
- for href, myId in self.ampPushKeys.iteritems():
+ for _ignore_href, myId in self.ampPushKeys.iteritems():
if inboundID == myId:
yield self._checkCalendarsForEvents(self.calendarHomeHref, push=True)
break
Modified: CalendarServer/trunk/contrib/performance/loadtest/sim.py
===================================================================
--- CalendarServer/trunk/contrib/performance/loadtest/sim.py 2016-06-25 14:24:48 UTC (rev 15706)
+++ CalendarServer/trunk/contrib/performance/loadtest/sim.py 2016-06-25 14:26:18 UTC (rev 15707)
@@ -504,7 +504,6 @@
AMPHub.start(hostsAndPorts)
-
def run(self, output=stdout):
self.attachServices(output)
if self.runtime is not None:
Modified: CalendarServer/trunk/contrib/performance/loadtest/test_amphub.py
===================================================================
--- CalendarServer/trunk/contrib/performance/loadtest/test_amphub.py 2016-06-25 14:24:48 UTC (rev 15706)
+++ CalendarServer/trunk/contrib/performance/loadtest/test_amphub.py 2016-06-25 14:26:18 UTC (rev 15707)
@@ -25,16 +25,19 @@
def __init__(self, history):
self.history = history
+
def callRemote(self, *args, **kwds):
self.history.append((args, kwds))
return succeed(None)
+
class AMPHubTestCase(TestCase):
def callback(self, id, dataChangedTimestamp, priority=5):
self.callbackHistory.append(id)
+
@inlineCallbacks
def test_amphub(self):
amphub = AMPHub()
Modified: CalendarServer/trunk/contrib/performance/loadtest/test_ical.py
===================================================================
--- CalendarServer/trunk/contrib/performance/loadtest/test_ical.py 2016-06-25 14:24:48 UTC (rev 15706)
+++ CalendarServer/trunk/contrib/performance/loadtest/test_ical.py 2016-06-25 14:26:18 UTC (rev 15707)
@@ -1242,7 +1242,7 @@
constructed from the data extracted from the response.
"""
home = "/calendars/__uids__/user01/"
- calendars, notificationCollection, homeToken = self.client._extractCalendars(
+ calendars, notificationCollection, _ignore_homeToken = self.client._extractCalendars(
self.client._parseMultiStatus(CALENDAR_HOME_PROPFIND_RESPONSE), home)
calendars.sort(key=lambda cal: cal.resourceType)
calendar, inbox = calendars
Modified: CalendarServer/trunk/contrib/performance/loadtest/test_profiles.py
===================================================================
--- CalendarServer/trunk/contrib/performance/loadtest/test_profiles.py 2016-06-25 14:24:48 UTC (rev 15706)
+++ CalendarServer/trunk/contrib/performance/loadtest/test_profiles.py 2016-06-25 14:26:18 UTC (rev 15707)
@@ -1037,6 +1037,7 @@
# XXX Vary the event period/interval and the uid
+
class AttachmentDownloaderTests(TestCase):
"""
Tests for L{AttachmentDownloader}.
@@ -1046,6 +1047,7 @@
self.sim = CalendarClientSimulator(
AnyUser(), Populator(None), None, None, None, None, None, None)
+
def test_normalize(self):
client = StubClient(1, self.mktemp())
client._managed_attachments_server_url = "https://thisserver:8443"
@@ -1056,6 +1058,7 @@
)
+
class OperationLoggerTests(TestCase):
"""
Tests for L{OperationLogger}.
Modified: CalendarServer/trunk/txdav/caldav/datastore/sql.py
===================================================================
--- CalendarServer/trunk/txdav/caldav/datastore/sql.py 2016-06-25 14:24:48 UTC (rev 15706)
+++ CalendarServer/trunk/txdav/caldav/datastore/sql.py 2016-06-25 14:26:18 UTC (rev 15707)
@@ -5560,12 +5560,14 @@
returnValue(name)
+
class UnsupportedQuery(Exception):
"""
Indicates the particular set of query parameters passed are not supported.
"""
+
class TrashCollection(Calendar):
_childType = _CHILD_TYPE_TRASH
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20160625/285993fa/attachment-0001.html>
More information about the calendarserver-changes
mailing list