[CalendarServer-changes] [6360] CalendarServer/branches/users/glyph/more-deferreds-6/txdav/caldav/ datastore/scheduling.py
source_changes at macosforge.org
source_changes at macosforge.org
Thu Sep 23 18:07:11 PDT 2010
Revision: 6360
http://trac.macosforge.org/projects/calendarserver/changeset/6360
Author: glyph at apple.com
Date: 2010-09-23 18:07:09 -0700 (Thu, 23 Sep 2010)
Log Message:
-----------
make one actual implementation deferred, to start poking the tests at least
Modified Paths:
--------------
CalendarServer/branches/users/glyph/more-deferreds-6/txdav/caldav/datastore/scheduling.py
Modified: CalendarServer/branches/users/glyph/more-deferreds-6/txdav/caldav/datastore/scheduling.py
===================================================================
--- CalendarServer/branches/users/glyph/more-deferreds-6/txdav/caldav/datastore/scheduling.py 2010-09-23 22:48:31 UTC (rev 6359)
+++ CalendarServer/branches/users/glyph/more-deferreds-6/txdav/caldav/datastore/scheduling.py 2010-09-24 01:07:09 UTC (rev 6360)
@@ -20,6 +20,7 @@
from twisted.python.util import FancyEqMixin
from twisted.python.components import proxyForInterface
+from twisted.internet.defer import inlineCallbacks, returnValue
@@ -78,16 +79,18 @@
def createCalendarWithName(self, name):
self._calendarHome.createCalendarWithName(name)
+
def removeCalendarWithName(self, name):
self._calendarHome.removeCalendarWithName(name)
+ @inlineCallbacks
def calendarWithName(self, name):
- calendar = self._calendarHome.calendarWithName(name)
+ calendar = yield self._calendarHome.calendarWithName(name)
if calendar is not None:
- return ImplicitCalendar(self, calendar)
+ returnValue(ImplicitCalendar(self, calendar))
else:
- return None
+ returnValue(None)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100923/3dae9cc8/attachment-0001.html>
More information about the calendarserver-changes
mailing list