changeset 316:4148f8f4caa0

browser_side: fix import and method signatures relative to changeset e4f586fc6101
author souliane <souliane@mailoo.org>
date Fri, 03 Jan 2014 13:33:44 +0100
parents 09205b410a53
children bbadd490e63c
files libervia.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libervia.py	Thu Jan 02 16:10:27 2014 +0100
+++ b/libervia.py	Fri Jan 03 13:33:44 2014 +0100
@@ -33,6 +33,7 @@
 from browser_side.panels import MicroblogItem
 from browser_side import panels, dialog
 from browser_side.jid import JID
+from browser_side.xmlui import XMLUI
 from browser_side.tools import html_sanitize
 from sat_frontends.tools.misc import InputHistory
 from sat_frontends.tools.strings import getURLParams
@@ -347,7 +348,7 @@
                 Timer(5, lambda: self._register_box._form.login_pass_box.setFocus(True))
 
 
-    def _actionCb(data):
+    def _actionCb(self, data):
         if not data:
             # action was a one shot, nothing to do
             pass
@@ -361,7 +362,7 @@
             dialog.InfoDialog("Error",
                               "Unmanaged action result", Width="400px").center()
 
-    def _actionEb(err_data):
+    def _actionEb(self, err_data):
         err_code, err_obj = err_data
         dialog.InfoDialog("Error",
                           str(err_obj), Width="400px").center()