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