1.1 --- a/imiptools/handlers/__init__.py Sun Jul 26 01:48:20 2015 +0200
1.2 +++ b/imiptools/handlers/__init__.py Sun Jul 26 01:59:34 2015 +0200
1.3 @@ -30,7 +30,6 @@
1.4 remove_additional_periods, remove_affected_period
1.5 from imiptools.profile import Preferences
1.6 from socket import gethostname
1.7 -import imip_store
1.8
1.9 # References to the Web interface.
1.10
1.11 @@ -62,7 +61,7 @@
1.12 default store and publisher objects.
1.13 """
1.14
1.15 - ClientForObject.__init__(self, None, recipient and get_uri(recipient), messenger)
1.16 + ClientForObject.__init__(self, None, recipient and get_uri(recipient), messenger, store, publisher)
1.17
1.18 self.senders = senders and set(map(get_address, senders))
1.19 self.recipient = recipient and get_address(recipient)
1.20 @@ -70,13 +69,6 @@
1.21 self.results = []
1.22 self.outgoing_methods = set()
1.23
1.24 - self.store = store or imip_store.FileStore()
1.25 -
1.26 - try:
1.27 - self.publisher = publisher or imip_store.FilePublisher()
1.28 - except OSError:
1.29 - self.publisher = None
1.30 -
1.31 def wrap(self, text, link=True):
1.32
1.33 "Wrap any valid message for passing to the recipient."