1.1 --- a/imiptools/handlers/person.py Mon Oct 05 17:19:54 2015 +0200
1.2 +++ b/imiptools/handlers/person.py Mon Oct 05 17:20:30 2015 +0200
1.3 @@ -105,6 +105,20 @@
1.4
1.5 return True
1.6
1.7 + def _declinecounter(self):
1.8 +
1.9 + "Revoke any counter-proposal recorded as a free/busy offer."
1.10 +
1.11 + # Obtain valid organiser and attendee details.
1.12 +
1.13 + oa = self.require_organiser_and_attendees()
1.14 + if not oa:
1.15 + return False
1.16 +
1.17 + self.remove_event_from_freebusy_offers()
1.18 +
1.19 + return True
1.20 +
1.21 def _record(self, from_organiser=True, queue=False, cancel=False):
1.22
1.23 """
1.24 @@ -264,13 +278,14 @@
1.25 "Record a counter-proposal to a proposed event."
1.26
1.27 if self._counter():
1.28 - return self.wrap("A counter proposal to an event invitation has been received.", link=False)
1.29 + return self.wrap("A counter proposal to an event invitation has been received.", link=True)
1.30
1.31 def declinecounter(self):
1.32
1.33 - # NOTE: Queue a rejected modification to any active event.
1.34 + "Record a rejection of a counter-proposal."
1.35
1.36 - return self.wrap("Your counter proposal to an event invitation has been declined.", link=False)
1.37 + if self._declinecounter():
1.38 + return self.wrap("Your counter proposal to an event invitation has been declined.", link=True)
1.39
1.40 def publish(self):
1.41