[CalendarServer-changes] [10103] CalendarServer/branches/users/cdaboo/managed-attachments/ twistedcaldav/method/put_common.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Nov 28 14:17:06 PST 2012


Revision: 10103
          http://trac.calendarserver.org//changeset/10103
Author:   cdaboo at apple.com
Date:     2012-11-28 14:17:06 -0800 (Wed, 28 Nov 2012)
Log Message:
-----------
Need to copy properties being moved so as not to affect the original data.

Modified Paths:
--------------
    CalendarServer/branches/users/cdaboo/managed-attachments/twistedcaldav/method/put_common.py

Modified: CalendarServer/branches/users/cdaboo/managed-attachments/twistedcaldav/method/put_common.py
===================================================================
--- CalendarServer/branches/users/cdaboo/managed-attachments/twistedcaldav/method/put_common.py	2012-11-28 21:51:56 UTC (rev 10102)
+++ CalendarServer/branches/users/cdaboo/managed-attachments/twistedcaldav/method/put_common.py	2012-11-28 22:17:06 UTC (rev 10103)
@@ -719,14 +719,15 @@
                             if old_component.name() != "VTODO":
                                 continue
                             if old_component.hasProperty("DTSTART"):
-                                component.addProperty(old_component.getProperty("DTSTART"))
+                                component.addProperty(old_component.getProperty("DTSTART").duplicate())
                                 break
 
                     # Add organizer back in from previous resource
-                    component.addProperty(old_organizer)
+                    component.addProperty(old_organizer.duplicate())
 
                     # Add attendees back in from previous resource
                     for anAttendee in old_attendees:
+                        anAttendee = anAttendee.duplicate()
                         if component.hasProperty("COMPLETED") and anAttendee.value() in originatorAddresses:
                             anAttendee.setParameter("PARTSTAT", "COMPLETED")
                         component.addProperty(anAttendee)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20121128/457d4717/attachment.html>


More information about the calendarserver-changes mailing list