[CalendarServer-changes] [2215] CalendarServer/branches/users/wsanchez/guid-calendars/twistedcaldav/ schedule.py

source_changes at macosforge.org source_changes at macosforge.org
Fri Mar 7 11:33:50 PST 2008


Revision: 2215
          http://trac.macosforge.org/projects/calendarserver/changeset/2215
Author:   wsanchez at apple.com
Date:     2008-03-07 11:33:47 -0800 (Fri, 07 Mar 2008)

Log Message:
-----------
Get rid of a couple of variables that are only used once.

Modified Paths:
--------------
    CalendarServer/branches/users/wsanchez/guid-calendars/twistedcaldav/schedule.py

Modified: CalendarServer/branches/users/wsanchez/guid-calendars/twistedcaldav/schedule.py
===================================================================
--- CalendarServer/branches/users/wsanchez/guid-calendars/twistedcaldav/schedule.py	2008-03-07 19:03:49 UTC (rev 2214)
+++ CalendarServer/branches/users/wsanchez/guid-calendars/twistedcaldav/schedule.py	2008-03-07 19:33:47 UTC (rev 2215)
@@ -341,10 +341,6 @@
         # Prepare for multiple responses
         responses = ScheduleResponseQueue("POST", responsecode.OK)
     
-        # Extract the ORGANIZER property and UID value from the calendar data for use later
-        organizerProp = calendar.getOrganizerProperty()
-        uid = calendar.resourceUID()
-
         # Loop over each recipient and do appropriate action.
         autoresponses = []
         for recipient in recipients:
@@ -443,7 +439,14 @@
                             matchtotal = matchtotal.getResult()
                     
                         # Build VFREEBUSY iTIP reply for this recipient
-                        fbresult = report_common.buildFreeBusyResult(fbinfo, timeRange, organizer=organizerProp, attendee=attendeeProp, uid=uid, method="REPLY")
+                        fbresult = report_common.buildFreeBusyResult(
+                            fbinfo,
+                            timeRange,
+                            organizer = calendar.getOrganizerProperty(),
+                            attendee = attendeeProp,
+                            uid = calendar.resourceUID(),
+                            method="REPLY"
+                        )
 
                         responses.add(recipient, responsecode.OK, reqstatus="2.0;Success", calendar=fbresult)
                         recipientsState["OK"] += 1

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


More information about the calendarserver-changes mailing list