diff libervia.py @ 318:c12c9a1acf2f

server_side: added support for paramsRegisterApp to define frontend's specific parameters like "Enable unibox"
author souliane <souliane@mailoo.org>
date Fri, 03 Jan 2014 14:19:01 +0100
parents bbadd490e63c
children bfbd9d6eb901
line wrap: on
line diff
--- a/libervia.py	Fri Jan 03 14:14:34 2014 +0100
+++ b/libervia.py	Fri Jan 03 14:19:01 2014 +0100
@@ -110,7 +110,7 @@
 class RegisterCall(LiberviaJsonProxy):
     def __init__(self):
         LiberviaJsonProxy.__init__(self, "/register_api",
-                        ["isRegistered", "isConnected", "connect"])
+                        ["isRegistered", "isConnected", "connect", "registerParams"])
 
 
 class BridgeCall(LiberviaJsonProxy):
@@ -180,6 +180,7 @@
         RootPanel().add(self.panel)
         DOM.addEventPreview(self)
         self._register = RegisterCall()
+        self._register.call('registerParams', None)
         self._register.call('isRegistered', self._isRegisteredCB)
         self.initialised = False
         self.init_cache = []  # used to cache events until initialisation is done
@@ -348,7 +349,6 @@
                 # this would eventually set the browser saved password
                 Timer(5, lambda: self._register_box._form.login_pass_box.setFocus(True))
 
-
     def _actionCb(self, data):
         if not data:
             # action was a one shot, nothing to do