comparison libervia.tac @ 299:e4f586fc6101

server and browser side: updated callback system to follow core changes
author Goffi <goffi@goffi.org>
date Tue, 24 Dec 2013 02:00:30 +0100
parents 19bcd39c77f6
children 4f221f34bdc7
comparison
equal deleted inserted replaced
298:e99f578c7179 299:e4f586fc6101
484 return self.sat_host.bridge.setParam(name, value, category, SECURITY_LIMIT, profile) 484 return self.sat_host.bridge.setParam(name, value, category, SECURITY_LIMIT, profile)
485 else: 485 else:
486 warning("Trying to set parameter '%s' in category '%s' without authorization!!!" 486 warning("Trying to set parameter '%s' in category '%s' without authorization!!!"
487 % (name, category)) 487 % (name, category))
488 488
489 def jsonrpc_launchAction(self, action_type, data): 489 def jsonrpc_launchAction(self, callback_id, data):
490 profile = ISATSession(self.session).profile 490 profile = ISATSession(self.session).profile
491 return self.sat_host.bridge.launchAction(action_type, data, profile) 491 d = self.asyncBridgeCall("launchAction", callback_id, data, profile)
492 return d
492 493
493 def jsonrpc_chatStateComposing(self, to_jid_s): 494 def jsonrpc_chatStateComposing(self, to_jid_s):
494 """Call the method to process a "composing" state. 495 """Call the method to process a "composing" state.
495 @param to_jid_s: contact the user is composing to 496 @param to_jid_s: contact the user is composing to
496 """ 497 """