diff libervia.tac @ 148:8635bc9db9bf

added parameter management to test XMLUI, but it's currently deactivated for security reasons (need some configuration options) + separated mainTabPanel CSS from LiberviaTabPanel
author Goffi <goffi@goffi.org>
date Sun, 09 Dec 2012 23:42:08 +0100
parents 09a512d9a0c0
children a159cc29b556
line wrap: on
line diff
--- a/libervia.tac	Sun Dec 09 23:38:30 2012 +0100
+++ b/libervia.tac	Sun Dec 09 23:42:08 2012 +0100
@@ -315,6 +315,22 @@
         profile = ISATSession(self.session).profile
         return self.sat_host.bridge.getEntityData(jid, keys, profile)
 
+    #def jsonrpc_getParamsUI(self):
+    #    """Return the parameters XMLUI for profile"""
+    #    profile = ISATSession(self.session).profile
+    #    d = defer.Deferred()
+    #    self.sat_host.bridge.getParamsUI(profile, callback=d.callback, errback=d.errback)
+    #    #d.addCallback(lambda result: unicode(result))
+    #    return d
+
+    #def jsonrpc_setParam(self, name, value, category):
+    #    profile = ISATSession(self.session).profile
+    #    return self.sat_host.bridge.setParam(name, value, category, profile)
+
+    def jsonrpc_launchAction(self, action_type, data):
+        profile = ISATSession(self.session).profile
+        return self.sat_host.bridge.launchAction(action_type, data, profile)
+        
 class Register(jsonrpc.JSONRPC):
     """This class manage the registration procedure with SàT
     It provide an api for the browser, check password and setup the web server"""