1.1 --- a/imiptools/__init__.py Mon Feb 02 17:29:58 2015 +0100
1.2 +++ b/imiptools/__init__.py Mon Feb 02 17:38:01 2015 +0100
1.3 @@ -83,7 +83,7 @@
1.4 all_responses = []
1.5 handled = False
1.6
1.7 - handlers = [(name, cls(senders, recipient, self.messenger)) for name, cls in self.handlers]
1.8 + handlers = dict([(name, cls(senders, recipient, self.messenger)) for name, cls in self.handlers])
1.9
1.10 for part in msg.walk():
1.11 if part.get_content_type() in itip_content_types and \
2.1 --- a/imiptools/content.py Mon Feb 02 17:29:58 2015 +0100
2.2 +++ b/imiptools/content.py Mon Feb 02 17:38:01 2015 +0100
2.3 @@ -136,13 +136,12 @@
2.4 def handle_itip_part(part, handlers):
2.5
2.6 """
2.7 - Handle the given iTIP 'part' using the given 'handlers'.
2.8 + Handle the given iTIP 'part' using the given 'handlers' dictionary.
2.9
2.10 Return a list of responses, each response being a tuple of the form
2.11 (outgoing-recipients, message-part).
2.12 """
2.13
2.14 - handlers = dict(handlers)
2.15 method = part.get_param("method")
2.16
2.17 # Decode the data and parse it.