changeset 681:3b185ccb70b4

browser side: updated trigger import according to backend renaming (sat.tools.misc is now sat.tools.trigger)
author Goffi <goffi@goffi.org>
date Thu, 19 Mar 2015 17:27:22 +0100
parents a90cc8fc9605
children e6bb64bd6b4d
files src/browser/sat_browser/plugin_sec_otr.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/browser/sat_browser/plugin_sec_otr.py	Wed Mar 18 16:15:18 2015 +0100
+++ b/src/browser/sat_browser/plugin_sec_otr.py	Thu Mar 19 17:27:22 2015 +0100
@@ -28,7 +28,7 @@
 
 from sat.core.i18n import _, D_
 from sat.core import exceptions
-from sat.tools.misc import TriggerManager
+from sat.tools import trigger
 
 from constants import Const as C
 from sat_frontends.tools import jid
@@ -388,8 +388,8 @@
         self.host = host
         self.context_manager = None
         self.host.bridge._registerMethods(["skipOTR"])
-        self.host.trigger.add("newMessageTrigger", self.newMessageTg, priority=TriggerManager.MAX_PRIORITY)
-        self.host.trigger.add("sendMessageTrigger", self.sendMessageTg, priority=TriggerManager.MAX_PRIORITY)
+        self.host.trigger.add("newMessageTrigger", self.newMessageTg, priority=trigger.TriggerManager.MAX_PRIORITY)
+        self.host.trigger.add("sendMessageTrigger", self.sendMessageTg, priority=trigger.TriggerManager.MAX_PRIORITY)
 
         # FIXME: workaround for a pyjamas issue: calling hash on a class method always return a different value if that method is defined directly within the class (with the "def" keyword)
         self._profilePluggedListener = self.profilePluggedListener