[CalendarServer-changes] [6744] CalendarServer/trunk/twistedcaldav/method/put_common.py

source_changes at macosforge.org source_changes at macosforge.org
Mon Jan 17 14:07:09 PST 2011


Revision: 6744
          http://trac.macosforge.org/projects/calendarserver/changeset/6744
Author:   cdaboo at apple.com
Date:     2011-01-17 14:07:02 -0800 (Mon, 17 Jan 2011)
Log Message:
-----------
Handle None for scheduleEtags on destination.

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/method/put_common.py

Modified: CalendarServer/trunk/twistedcaldav/method/put_common.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/method/put_common.py	2011-01-17 19:51:36 UTC (rev 6743)
+++ CalendarServer/trunk/twistedcaldav/method/put_common.py	2011-01-17 22:07:02 UTC (rev 6744)
@@ -768,6 +768,8 @@
                     # Schedule-Tag did not change => add current ETag to list of those that can
                     # be used in a weak pre-condition test
                     etags = self.destination.scheduleEtags
+                    if etags is None:
+                        etags = ()
                 etags += (hashlib.md5(data).hexdigest(),)
                 self.destination.scheduleEtags = etags
             else:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110117/0f1ab9cd/attachment.html>


More information about the calendarserver-changes mailing list