1.1 --- a/imiptools/handlers/person.py Sat Mar 07 00:11:44 2015 +0100
1.2 +++ b/imiptools/handlers/person.py Sat Mar 07 00:13:41 2015 +0100
1.3 @@ -227,92 +227,11 @@
1.4 if preferences.get("freebusy_sharing") == "share":
1.5 return CommonFreebusy.request(self)
1.6
1.7 -class Journal(PersonHandler):
1.8 -
1.9 - "A journal entry handler."
1.10 -
1.11 - def add(self):
1.12 -
1.13 - # NOTE: Queue a suggested modification to any active entry.
1.14 -
1.15 - return self.wrap("An addition to a journal entry has been received.", link=False)
1.16 -
1.17 - def cancel(self):
1.18 -
1.19 - # NOTE: Queue a suggested modification to any active entry.
1.20 -
1.21 - return self.wrap("A cancellation has been received.", link=False)
1.22 -
1.23 - def publish(self):
1.24 -
1.25 - # NOTE: Register details of any relevant entry.
1.26 -
1.27 - self._record(from_organiser=True, queue=False)
1.28 - return self.wrap("Details of a journal entry have been received.")
1.29 -
1.30 -class Todo(PersonHandler):
1.31 -
1.32 - "A to-do item handler."
1.33 -
1.34 - def add(self):
1.35 -
1.36 - # NOTE: Queue a suggested modification to any active item.
1.37 -
1.38 - return self.wrap("An addition to an item has been received.", link=False)
1.39 -
1.40 - def cancel(self):
1.41 -
1.42 - # NOTE: Queue a suggested modification to any active item.
1.43 -
1.44 - return self.wrap("A cancellation has been received.", link=False)
1.45 -
1.46 - def counter(self):
1.47 -
1.48 - # NOTE: Queue a suggested modification to any active item.
1.49 -
1.50 - return self.wrap("A counter proposal has been received.", link=False)
1.51 -
1.52 - def declinecounter(self):
1.53 -
1.54 - # NOTE: Queue a suggested modification to any active item.
1.55 -
1.56 - return self.wrap("A declining counter proposal has been received.", link=False)
1.57 -
1.58 - def publish(self):
1.59 -
1.60 - "Register details of any relevant item."
1.61 -
1.62 - self._record(from_organiser=True, queue=False)
1.63 - return self.wrap("Details of an item have been received.")
1.64 -
1.65 - def refresh(self):
1.66 -
1.67 - "Update details of any active item."
1.68 -
1.69 - self._record(from_organiser=True, queue=False)
1.70 - return self.wrap("An item update has been received.")
1.71 -
1.72 - def reply(self):
1.73 -
1.74 - "Record replies and notify the recipient."
1.75 -
1.76 - self._record(from_organiser=False, queue=False)
1.77 - return self.wrap("A reply has been received.")
1.78 -
1.79 - def request(self):
1.80 -
1.81 - "Hold requests and notify the recipient."
1.82 -
1.83 - self._record(from_organiser=True, queue=True)
1.84 - return self.wrap("A request has been received.")
1.85 -
1.86 # Handler registry.
1.87
1.88 handlers = [
1.89 ("VFREEBUSY", Freebusy),
1.90 ("VEVENT", Event),
1.91 - ("VTODO", Todo),
1.92 - ("VJOURNAL", Journal),
1.93 ]
1.94
1.95 # vim: tabstop=4 expandtab shiftwidth=4
2.1 --- a/imiptools/handlers/person_outgoing.py Sat Mar 07 00:11:44 2015 +0100
2.2 +++ b/imiptools/handlers/person_outgoing.py Sat Mar 07 00:13:41 2015 +0100
2.3 @@ -208,54 +208,11 @@
2.4 def request(self):
2.5 pass
2.6
2.7 -class Journal(PersonHandler):
2.8 -
2.9 - "A journal entry handler."
2.10 -
2.11 - def add(self):
2.12 - pass
2.13 -
2.14 - def cancel(self):
2.15 - self._remove(True)
2.16 -
2.17 - def publish(self):
2.18 - self._record(True)
2.19 -
2.20 -class Todo(PersonHandler):
2.21 -
2.22 - "A to-do item handler."
2.23 -
2.24 - def add(self):
2.25 - pass
2.26 -
2.27 - def cancel(self):
2.28 - self._remove(True)
2.29 -
2.30 - def counter(self):
2.31 - pass
2.32 -
2.33 - def declinecounter(self):
2.34 - pass
2.35 -
2.36 - def publish(self):
2.37 - self._record(True)
2.38 -
2.39 - def refresh(self):
2.40 - pass
2.41 -
2.42 - def reply(self):
2.43 - self._record(False)
2.44 -
2.45 - def request(self):
2.46 - self._record(True)
2.47 -
2.48 # Handler registry.
2.49
2.50 handlers = [
2.51 ("VFREEBUSY", Freebusy),
2.52 ("VEVENT", Event),
2.53 - ("VTODO", Todo),
2.54 - ("VJOURNAL", Journal),
2.55 ]
2.56
2.57 # vim: tabstop=4 expandtab shiftwidth=4
3.1 --- a/imiptools/handlers/resource.py Sat Mar 07 00:11:44 2015 +0100
3.2 +++ b/imiptools/handlers/resource.py Sat Mar 07 00:13:41 2015 +0100
3.3 @@ -194,66 +194,11 @@
3.4
3.5 # request provided by CommonFreeBusy.request
3.6
3.7 -class Journal(ResourceHandler):
3.8 -
3.9 - "A journal entry handler."
3.10 -
3.11 - def add(self):
3.12 - pass
3.13 -
3.14 - def cancel(self):
3.15 - pass
3.16 -
3.17 - def publish(self):
3.18 - pass
3.19 -
3.20 -class Todo(ResourceHandler):
3.21 -
3.22 - "A to-do item handler."
3.23 -
3.24 - def add(self):
3.25 - pass
3.26 -
3.27 - def cancel(self):
3.28 - pass
3.29 -
3.30 - def counter(self):
3.31 -
3.32 - "Since this handler does not send requests, it will not handle replies."
3.33 -
3.34 - pass
3.35 -
3.36 - def declinecounter(self):
3.37 -
3.38 - """
3.39 - Since this handler does not send counter proposals, it will not handle
3.40 - replies to such proposals.
3.41 - """
3.42 -
3.43 - pass
3.44 -
3.45 - def publish(self):
3.46 - pass
3.47 -
3.48 - def refresh(self):
3.49 - pass
3.50 -
3.51 - def reply(self):
3.52 -
3.53 - "Since this handler does not send requests, it will not handle replies."
3.54 -
3.55 - pass
3.56 -
3.57 - def request(self):
3.58 - pass
3.59 -
3.60 # Handler registry.
3.61
3.62 handlers = [
3.63 ("VFREEBUSY", Freebusy),
3.64 ("VEVENT", Event),
3.65 - ("VTODO", Todo),
3.66 - ("VJOURNAL", Journal),
3.67 ]
3.68
3.69 # vim: tabstop=4 expandtab shiftwidth=4