[CalendarServer-changes] [1650]
CalendarServer/branches/release/CalendarServer-1.0-dev/twistedcaldav
/itip.py
source_changes at macosforge.org
source_changes at macosforge.org
Thu Jul 5 14:13:11 PDT 2007
Revision: 1650
http://trac.macosforge.org/projects/calendarserver/changeset/1650
Author: wsanchez at apple.com
Date: 2007-07-05 14:13:11 -0700 (Thu, 05 Jul 2007)
Log Message:
-----------
Pulled up r1642 from trunk.
Modified Paths:
--------------
CalendarServer/branches/release/CalendarServer-1.0-dev/twistedcaldav/itip.py
Modified: CalendarServer/branches/release/CalendarServer-1.0-dev/twistedcaldav/itip.py
===================================================================
--- CalendarServer/branches/release/CalendarServer-1.0-dev/twistedcaldav/itip.py 2007-07-05 21:13:00 UTC (rev 1649)
+++ CalendarServer/branches/release/CalendarServer-1.0-dev/twistedcaldav/itip.py 2007-07-05 21:13:11 UTC (rev 1650)
@@ -437,7 +437,7 @@
Check whether a reply to the given iTIP message is needed. A reply will be needed if the
RSVP=TRUE. A reply will either be positive (accepted
invitation) or negative (denied invitation). In addition we will modify calendar to reflect
- any new state (e.g. remove RSVP, set PART-STAT to ACCEPTED or DECLINED).
+ any new state (e.g. remove RSVP, set PARTSTAT to ACCEPTED or DECLINED).
@param request: the L{twisted.web2.server.Request} for the current request.
@param principal: the L{CalendarPrincipalFile} principal resource for the principal we are dealing with.
@@ -501,16 +501,13 @@
return
# Look for specific parameters
+ rsvp = False
if "RSVP" in attendeeProp.params():
- if attendeeProp.params()["RSVP"][0] != "TRUE":
- yield False, None, accepted
- return
- else:
- yield False, None, accepted
- return
+ if attendeeProp.params()["RSVP"][0] == "TRUE":
+ rsvp = True
- # Now modify the original component
- del attendeeProp.params()["RSVP"]
+ # Now modify the original component
+ del attendeeProp.params()["RSVP"]
if accepted:
partstat = "ACCEPTED"
@@ -544,7 +541,7 @@
if (attendee.value() != attendeeProp.value()):
replycal.mainComponent().removeProperty(attendee)
- yield True, replycal, accepted
+ yield rsvp, replycal, accepted
checkForReply = deferredGenerator(checkForReply)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070705/50a42e15/attachment.html
More information about the calendarserver-changes
mailing list