Mercurial > libervia-web
diff src/server/server.py @ 746:25984ca4aef2
server side: special handling of Connection/JabberID and Connection/autoconnect parameter which has needed by QuickApp but restricted by security limit
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 23 Nov 2015 14:19:25 +0100 |
parents | ad733b670cc3 |
children | 8ac862f6e5b3 |
line wrap: on
line diff
--- a/src/server/server.py Mon Nov 23 12:59:28 2015 +0100 +++ b/src/server/server.py Mon Nov 23 14:19:25 2015 +0100 @@ -630,6 +630,12 @@ def jsonrpc_asyncGetParamA(self, param, category, attribute="value"): """Return the parameter value for profile""" profile = ISATSession(self.session).profile + if category == "Connection": + # we need to manage the followings params here, else SECURITY_LIMIT would block them + if param == "JabberID": + return self.asyncBridgeCall("asyncGetParamA", param, category, attribute, profile_key=profile) + elif param == "autoconnect": + return defer.succeed(C.BOOL_TRUE) d = self.asyncBridgeCall("asyncGetParamA", param, category, attribute, C.SECURITY_LIMIT, profile_key=profile) return d