Mercurial > libervia-web
diff 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 |
line wrap: on
line diff
--- a/libervia.tac Tue Oct 15 13:36:51 2013 +0200 +++ b/libervia.tac Fri Oct 18 11:14:55 2013 +0200 @@ -429,12 +429,16 @@ return self.sat_host.bridge.launchAction(action_type, data, profile) def jsonrpc_chatStateComposing(self, to_jid_s): - """Broadcast a signal for "composing" state. + """Call the method to process a "composing" state. @param to_jid_s: contact the user is composing to """ profile = ISATSession(self.session).profile self.sat_host.bridge.chatStateComposing(to_jid_s, profile) + def jsonrpc_getNewAccountDomain(self): + """@return: the domain for new account creation""" + d = self.asyncBridgeCall("getNewAccountDomain") + return d class Register(JSONRPCMethodManager): """This class manage the registration procedure with SàT