1.1 --- a/imiptools/handlers/person.py Sat Oct 25 21:43:45 2014 +0200
1.2 +++ b/imiptools/handlers/person.py Sat Oct 25 21:44:24 2014 +0200
1.3 @@ -8,9 +8,9 @@
1.4 from imiptools.content import Handler, to_part
1.5 from vCalendar import to_node
1.6
1.7 -class Event(Handler):
1.8 +class PersonHandler(Handler):
1.9
1.10 - "An event handler."
1.11 + "Handling mechanisms specific to people."
1.12
1.13 def _record_and_deliver(self, queue=False):
1.14
1.15 @@ -38,6 +38,10 @@
1.16
1.17 return True
1.18
1.19 +class Event(PersonHandler):
1.20 +
1.21 + "An event handler."
1.22 +
1.23 def add(self):
1.24
1.25 # NOTE: Queue a suggested modification to any active event.
1.26 @@ -106,7 +110,7 @@
1.27
1.28 return "REQUEST", MIMEText("A request has been queued.")
1.29
1.30 -class Freebusy(Handler):
1.31 +class Freebusy(PersonHandler):
1.32
1.33 "A free/busy handler."
1.34
1.35 @@ -171,7 +175,7 @@
1.36
1.37 return "REPLY", to_part("REPLY", calendar)
1.38
1.39 -class Journal(Handler):
1.40 +class Journal(PersonHandler):
1.41
1.42 "A journal entry handler."
1.43
1.44 @@ -199,7 +203,7 @@
1.45
1.46 return "PUBLISH", MIMEText("Details of a journal entry have been received.")
1.47
1.48 -class Todo(Handler):
1.49 +class Todo(PersonHandler):
1.50
1.51 "A to-do item handler."
1.52