# HG changeset patch # User Paul Boddie # Date 1425683621 -3600 # Node ID 63473567026a7b276eb305c006ad509ad44c5848 # Parent 0b326e3711f45113318815e0b4b7ea04e8aabfb5 Removed VTODO and VJOURNAL handlers, since they are mostly beyond the scope of this project for the time being. diff -r 0b326e3711f4 -r 63473567026a imiptools/handlers/person.py --- a/imiptools/handlers/person.py Sat Mar 07 00:11:44 2015 +0100 +++ b/imiptools/handlers/person.py Sat Mar 07 00:13:41 2015 +0100 @@ -227,92 +227,11 @@ if preferences.get("freebusy_sharing") == "share": return CommonFreebusy.request(self) -class Journal(PersonHandler): - - "A journal entry handler." - - def add(self): - - # NOTE: Queue a suggested modification to any active entry. - - return self.wrap("An addition to a journal entry has been received.", link=False) - - def cancel(self): - - # NOTE: Queue a suggested modification to any active entry. - - return self.wrap("A cancellation has been received.", link=False) - - def publish(self): - - # NOTE: Register details of any relevant entry. - - self._record(from_organiser=True, queue=False) - return self.wrap("Details of a journal entry have been received.") - -class Todo(PersonHandler): - - "A to-do item handler." - - def add(self): - - # NOTE: Queue a suggested modification to any active item. - - return self.wrap("An addition to an item has been received.", link=False) - - def cancel(self): - - # NOTE: Queue a suggested modification to any active item. - - return self.wrap("A cancellation has been received.", link=False) - - def counter(self): - - # NOTE: Queue a suggested modification to any active item. - - return self.wrap("A counter proposal has been received.", link=False) - - def declinecounter(self): - - # NOTE: Queue a suggested modification to any active item. - - return self.wrap("A declining counter proposal has been received.", link=False) - - def publish(self): - - "Register details of any relevant item." - - self._record(from_organiser=True, queue=False) - return self.wrap("Details of an item have been received.") - - def refresh(self): - - "Update details of any active item." - - self._record(from_organiser=True, queue=False) - return self.wrap("An item update has been received.") - - def reply(self): - - "Record replies and notify the recipient." - - self._record(from_organiser=False, queue=False) - return self.wrap("A reply has been received.") - - def request(self): - - "Hold requests and notify the recipient." - - self._record(from_organiser=True, queue=True) - return self.wrap("A request has been received.") - # Handler registry. handlers = [ ("VFREEBUSY", Freebusy), ("VEVENT", Event), - ("VTODO", Todo), - ("VJOURNAL", Journal), ] # vim: tabstop=4 expandtab shiftwidth=4 diff -r 0b326e3711f4 -r 63473567026a imiptools/handlers/person_outgoing.py --- a/imiptools/handlers/person_outgoing.py Sat Mar 07 00:11:44 2015 +0100 +++ b/imiptools/handlers/person_outgoing.py Sat Mar 07 00:13:41 2015 +0100 @@ -208,54 +208,11 @@ def request(self): pass -class Journal(PersonHandler): - - "A journal entry handler." - - def add(self): - pass - - def cancel(self): - self._remove(True) - - def publish(self): - self._record(True) - -class Todo(PersonHandler): - - "A to-do item handler." - - def add(self): - pass - - def cancel(self): - self._remove(True) - - def counter(self): - pass - - def declinecounter(self): - pass - - def publish(self): - self._record(True) - - def refresh(self): - pass - - def reply(self): - self._record(False) - - def request(self): - self._record(True) - # Handler registry. handlers = [ ("VFREEBUSY", Freebusy), ("VEVENT", Event), - ("VTODO", Todo), - ("VJOURNAL", Journal), ] # vim: tabstop=4 expandtab shiftwidth=4 diff -r 0b326e3711f4 -r 63473567026a imiptools/handlers/resource.py --- a/imiptools/handlers/resource.py Sat Mar 07 00:11:44 2015 +0100 +++ b/imiptools/handlers/resource.py Sat Mar 07 00:13:41 2015 +0100 @@ -194,66 +194,11 @@ # request provided by CommonFreeBusy.request -class Journal(ResourceHandler): - - "A journal entry handler." - - def add(self): - pass - - def cancel(self): - pass - - def publish(self): - pass - -class Todo(ResourceHandler): - - "A to-do item handler." - - def add(self): - pass - - def cancel(self): - pass - - def counter(self): - - "Since this handler does not send requests, it will not handle replies." - - pass - - def declinecounter(self): - - """ - Since this handler does not send counter proposals, it will not handle - replies to such proposals. - """ - - pass - - def publish(self): - pass - - def refresh(self): - pass - - def reply(self): - - "Since this handler does not send requests, it will not handle replies." - - pass - - def request(self): - pass - # Handler registry. handlers = [ ("VFREEBUSY", Freebusy), ("VEVENT", Event), - ("VTODO", Todo), - ("VJOURNAL", Journal), ] # vim: tabstop=4 expandtab shiftwidth=4