[CalendarServer-changes] [1306] CalendarServer/trunk/twistedcaldav/schedule.py

source_changes at macosforge.org source_changes at macosforge.org
Sat Mar 3 19:05:58 PST 2007


Revision: 1306
          http://trac.macosforge.org/projects/calendarserver/changeset/1306
Author:   cdaboo at apple.com
Date:     2007-03-03 19:05:58 -0800 (Sat, 03 Mar 2007)

Log Message:
-----------
No longer store scheduling message in the Outbox.

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/schedule.py

Modified: CalendarServer/trunk/twistedcaldav/schedule.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/schedule.py	2007-03-04 03:04:36 UTC (rev 1305)
+++ CalendarServer/trunk/twistedcaldav/schedule.py	2007-03-04 03:05:58 UTC (rev 1306)
@@ -275,44 +275,6 @@
         # Prepare for multiple responses
         responses = ScheduleResponseQueue("POST", responsecode.OK)
     
-        # Outbox copy is saved when not doing free busy request
-        if not freebusy:
-            # Hash the iCalendar data for use as the last path element of the URI path
-            name = md5.new(str(calendar) + str(time.time()) + self.fp.path).hexdigest() + ".ics"
-        
-            # Save a copy of the calendar data into the Outbox
-            childURL = joinURL(request.uri, name)
-            child = waitForDeferred(request.locateResource(childURL))
-            yield child
-            child = child.getResult()
-            responses.setLocation(childURL)
-        
-            try:
-                d = waitForDeferred(
-                        maybeDeferred(
-                            storeCalendarObjectResource,
-                            request = request,
-                            sourcecal = False,
-                            destination = child,
-                            destination_uri = childURL,
-                            calendardata = str(calendar),
-                            destinationparent = self,
-                            destinationcal = True,
-                            isiTIP = True
-                        )
-                    )
-                yield d
-                d.getResult()
-            except:
-                log.err("Error while handling POST: %s" % (Failure(),))
-                raise HTTPError(ErrorResponse(responsecode.FORBIDDEN, (caldav_namespace, "outbox-copy")))
-        
-            # Store CALDAV:originator property
-            child.writeDeadProperty(caldavxml.Originator(davxml.HRef(originator)))
-        
-            # Store CALDAV:recipient property
-            child.writeDeadProperty(caldavxml.Recipient(*map(davxml.HRef, recipients)))
- 
         # Extract the ORGANIZER property and UID value from the calendar data  for use later
         organizerProp = calendar.getOrganizerProperty()
         uid = calendar.resourceUID()

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070303/babc7c0f/attachment.html


More information about the calendarserver-changes mailing list