# HG changeset patch # User Paul Boddie # Date 1422811833 -3600 # Node ID 2f5db11532e0cff1524a4ba543f10a4a06c990b7 # Parent 9cbb8429988df4a57208778d6b8e1046b724fb32 Removed the sending of free/busy details upon receiving event requests. (This produced duplicate information when multiple requests were received by a recipient, and the information is better communicated with a reply.) diff -r 9cbb8429988d -r 2f5db11532e0 imiptools/handlers/person.py --- a/imiptools/handlers/person.py Sun Feb 01 18:26:21 2015 +0100 +++ b/imiptools/handlers/person.py Sun Feb 01 18:30:33 2015 +0100 @@ -21,7 +21,7 @@ from imiptools.content import Handler from imiptools.data import get_address, get_uri, uri_dict, uri_items -from imiptools.handlers.common import CommonFreebusy, SupportFreebusy +from imiptools.handlers.common import CommonFreebusy from imiptools.profile import Preferences class PersonHandler(Handler): @@ -120,7 +120,7 @@ for sender, sender_attr in uri_items(self.obj.get_items(from_organiser and "ORGANIZER" or "ATTENDEE")): self.store.set_freebusy_for_other(get_uri(self.recipient), freebusy, sender) -class Event(PersonHandler, SupportFreebusy): +class Event(PersonHandler): "An event handler." @@ -175,18 +175,7 @@ "Hold requests and notify the recipient." self._record_and_deliver(from_organiser=True, queue=True) - - # Produce free/busy information if configured to do so. - - preferences = Preferences(get_uri(self.recipient)) - if preferences.get("freebusy_sharing") == "share" and \ - preferences.get("freebusy_bundling") == "always": - - freebusy = self.make_freebusy_to_publish(from_organiser=False) - else: - freebusy = [] - - return self.wrap("A request has been received.") + freebusy + return self.wrap("A request has been received.") class Freebusy(PersonHandler, CommonFreebusy):