[CalendarServer-changes] [3920] CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/itip .py

source_changes at macosforge.org source_changes at macosforge.org
Wed Mar 25 19:07:39 PDT 2009


Revision: 3920
          http://trac.macosforge.org/projects/calendarserver/changeset/3920
Author:   cdaboo at apple.com
Date:     2009-03-25 19:07:38 -0700 (Wed, 25 Mar 2009)
Log Message:
-----------
Handle a partial accept followed by a full decline on auto-accept.

Modified Paths:
--------------
    CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/itip.py

Modified: CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/itip.py
===================================================================
--- CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/itip.py	2009-03-26 02:06:35 UTC (rev 3919)
+++ CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/itip.py	2009-03-26 02:07:38 UTC (rev 3920)
@@ -134,8 +134,12 @@
             # See whether the new component is older than any existing ones and throw it away if so
             newinfo = (None,) + getComponentSyncInfo(new_master)
             cal = updatecal.iCalendar(calmatch)
-            info = getSyncInfo(calmatch, cal)
-            if compareSyncInfo(info, newinfo) < 0:
+            old_master = cal.masterComponent()
+            if old_master:
+                info = getSyncInfo(calmatch, cal)
+            else:
+                info = None
+            if info is None or compareSyncInfo(info, newinfo) < 0:
                 # Existing resource is older and will be replaced
                 check_reply = True
             else:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20090325/539923ec/attachment.html>


More information about the calendarserver-changes mailing list