# HG changeset patch # User Paul Boddie # Date 1443827081 -7200 # Node ID 7de8236d3faea11d1a09c40769011a3d8cf8e077 # Parent 5bf53579e1f613d262fe081d19f4b8bfa18c8651 Added support for recording counter-proposal offers. diff -r 5bf53579e1f6 -r 7de8236d3fae imiptools/handlers/person_outgoing.py --- a/imiptools/handlers/person_outgoing.py Sat Oct 03 01:04:01 2015 +0200 +++ b/imiptools/handlers/person_outgoing.py Sat Oct 03 01:04:41 2015 +0200 @@ -76,7 +76,7 @@ return True - def _record(self, from_organiser=True): + def _record(self, from_organiser=True, counter=False): """ Record details from the current object given a message originating @@ -122,7 +122,14 @@ # Update free/busy information. - self.update_event_in_freebusy(from_organiser) + if not counter: + self.update_event_in_freebusy(from_organiser) + + # For countered proposals, record the offer in the resource's + # free/busy collection. + + else: + self.update_event_in_freebusy_offers() return True @@ -216,9 +223,9 @@ def counter(self): - "Counter-proposals are tentative and do not change events." + "Record an offer made by a counter-proposal." - pass + self._record(False, True) def declinecounter(self):