[CalendarServer-changes] [5232] CalendarServer/trunk/twistedcaldav/scheduling/processing.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Mar 3 09:39:59 PST 2010
Revision: 5232
http://trac.macosforge.org/projects/calendarserver/changeset/5232
Author: cdaboo at apple.com
Date: 2010-03-03 09:39:59 -0800 (Wed, 03 Mar 2010)
Log Message:
-----------
Minor clean-up.
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/scheduling/processing.py
Modified: CalendarServer/trunk/twistedcaldav/scheduling/processing.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/scheduling/processing.py 2010-03-02 21:23:49 UTC (rev 5231)
+++ CalendarServer/trunk/twistedcaldav/scheduling/processing.py 2010-03-03 17:39:59 UTC (rev 5232)
@@ -432,22 +432,21 @@
lock = MemcacheLock("ImplicitUIDLock", calendar.resourceUID(), timeout=60.0)
try:
- if lock:
- yield lock.acquire()
+ yield lock.acquire()
# Send out a reply
log.debug("ImplicitProcessing - recipient '%s' processing UID: '%s' - auto-reply: %s" % (self.recipient.cuaddr, self.uid, partstat))
from twistedcaldav.scheduling.implicit import ImplicitScheduler
scheduler = ImplicitScheduler()
- scheduler.sendAttendeeReply(self.request, resource, calendar, self.recipient)
+ yield scheduler.sendAttendeeReply(self.request, resource, calendar, self.recipient)
+
except MemcacheLockTimeoutError:
# Just try again to get the lock
reactor.callLater(2.0, self.sendAttendeeAutoReply, *(calendar, resource, partstat))
finally:
- if lock:
- yield lock.clean()
+ yield lock.clean()
@inlineCallbacks
def checkAttendeeAutoReply(self, calendar):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100303/ca2190dc/attachment.html>
More information about the calendarserver-changes
mailing list