comparison libervia.tac @ 242:a25aa882e09a

browser_side: add context menu for contact: - for now only when a blog exists on the current libervia's server - retrieve the server domain with the bridge method getNewAccountDomain - getNewAccountDomain is also used to display the current libervia domain in the dialogs (new contact default domain, messages for invalid contact or group)
author souliane <souliane@mailoo.org>
date Fri, 18 Oct 2013 11:14:55 +0200
parents b304cdf13a3b
children 24335e82fef0
comparison
equal deleted inserted replaced
241:86055ccf69c3 242:a25aa882e09a
427 def jsonrpc_launchAction(self, action_type, data): 427 def jsonrpc_launchAction(self, action_type, data):
428 profile = ISATSession(self.session).profile 428 profile = ISATSession(self.session).profile
429 return self.sat_host.bridge.launchAction(action_type, data, profile) 429 return self.sat_host.bridge.launchAction(action_type, data, profile)
430 430
431 def jsonrpc_chatStateComposing(self, to_jid_s): 431 def jsonrpc_chatStateComposing(self, to_jid_s):
432 """Broadcast a signal for "composing" state. 432 """Call the method to process a "composing" state.
433 @param to_jid_s: contact the user is composing to 433 @param to_jid_s: contact the user is composing to
434 """ 434 """
435 profile = ISATSession(self.session).profile 435 profile = ISATSession(self.session).profile
436 self.sat_host.bridge.chatStateComposing(to_jid_s, profile) 436 self.sat_host.bridge.chatStateComposing(to_jid_s, profile)
437 437
438 def jsonrpc_getNewAccountDomain(self):
439 """@return: the domain for new account creation"""
440 d = self.asyncBridgeCall("getNewAccountDomain")
441 return d
438 442
439 class Register(JSONRPCMethodManager): 443 class Register(JSONRPCMethodManager):
440 """This class manage the registration procedure with SàT 444 """This class manage the registration procedure with SàT
441 It provide an api for the browser, check password and setup the web server""" 445 It provide an api for the browser, check password and setup the web server"""
442 446