[CalendarServer-changes] [3031] CalendarServer/trunk/twistedcaldav/scheduling/icaldiff.py
source_changes at macosforge.org
source_changes at macosforge.org
Fri Sep 19 09:36:56 PDT 2008
Revision: 3031
http://trac.macosforge.org/projects/calendarserver/changeset/3031
Author: cdaboo at apple.com
Date: 2008-09-19 09:36:55 -0700 (Fri, 19 Sep 2008)
Log Message:
-----------
Make sure an organizer change to CREATED property value does not trigger an scheduling message to attendees.
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/scheduling/icaldiff.py
Modified: CalendarServer/trunk/twistedcaldav/scheduling/icaldiff.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/scheduling/icaldiff.py 2008-09-19 15:55:46 UTC (rev 3030)
+++ CalendarServer/trunk/twistedcaldav/scheduling/icaldiff.py 2008-09-19 16:36:55 UTC (rev 3031)
@@ -48,27 +48,26 @@
changed by an organizer. Basically any change except for anything related to a VALARM.
"""
- # Do straight comparison without alarms
- self.calendar1 = self.calendar1.duplicate()
- self.calendar1.removeAlarms()
- self.calendar1.filterProperties(remove=(
+ removeProperties = (
+ "CREATED",
"DTSTAMP",
"LAST-MODIFIED",
- ))
- self.calendar1.removePropertyParameters("ATTENDEE", (
+ )
+
+ removeAttendeeParameters = (
"SCHEDULE-AGENT",
"SCHEDULE-STATUS",
- ))
+ )
+
+ # Do straight comparison without alarms
+ self.calendar1 = self.calendar1.duplicate()
+ self.calendar1.removeAlarms()
+ self.calendar1.filterProperties(remove=removeProperties)
+ self.calendar1.removePropertyParameters("ATTENDEE", removeAttendeeParameters)
self.calendar2 = self.calendar2.duplicate()
self.calendar2.removeAlarms()
- self.calendar2.filterProperties(remove=(
- "DTSTAMP",
- "LAST-MODIFIED",
- ))
- self.calendar2.removePropertyParameters("ATTENDEE", (
- "SCHEDULE-AGENT",
- "SCHEDULE-STATUS",
- ))
+ self.calendar2.filterProperties(remove=removeProperties)
+ self.calendar2.removePropertyParameters("ATTENDEE", removeAttendeeParameters)
return self.calendar1 == self.calendar2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20080919/306ff20f/attachment.html
More information about the calendarserver-changes
mailing list