Mercurial > libervia-web
comparison 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 |
comparison
equal
deleted
inserted
replaced
147:60ea800b7237 | 148:8635bc9db9bf |
---|---|
313 @param keys: name of data we want (list) | 313 @param keys: name of data we want (list) |
314 @return: requested data""" | 314 @return: requested data""" |
315 profile = ISATSession(self.session).profile | 315 profile = ISATSession(self.session).profile |
316 return self.sat_host.bridge.getEntityData(jid, keys, profile) | 316 return self.sat_host.bridge.getEntityData(jid, keys, profile) |
317 | 317 |
318 #def jsonrpc_getParamsUI(self): | |
319 # """Return the parameters XMLUI for profile""" | |
320 # profile = ISATSession(self.session).profile | |
321 # d = defer.Deferred() | |
322 # self.sat_host.bridge.getParamsUI(profile, callback=d.callback, errback=d.errback) | |
323 # #d.addCallback(lambda result: unicode(result)) | |
324 # return d | |
325 | |
326 #def jsonrpc_setParam(self, name, value, category): | |
327 # profile = ISATSession(self.session).profile | |
328 # return self.sat_host.bridge.setParam(name, value, category, profile) | |
329 | |
330 def jsonrpc_launchAction(self, action_type, data): | |
331 profile = ISATSession(self.session).profile | |
332 return self.sat_host.bridge.launchAction(action_type, data, profile) | |
333 | |
318 class Register(jsonrpc.JSONRPC): | 334 class Register(jsonrpc.JSONRPC): |
319 """This class manage the registration procedure with SàT | 335 """This class manage the registration procedure with SàT |
320 It provide an api for the browser, check password and setup the web server""" | 336 It provide an api for the browser, check password and setup the web server""" |
321 | 337 |
322 def __init__(self, sat_host): | 338 def __init__(self, sat_host): |