Mercurial > libervia-web
diff src/server/server.py @ 751:2ddd85551612
server + browser side: getFeatures bridge call
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 23 Nov 2015 23:30:34 +0100 |
parents | 8ac862f6e5b3 |
children | 249e49f56f67 |
line wrap: on
line diff
--- a/src/server/server.py Mon Jul 20 10:16:10 2015 +0200 +++ b/src/server/server.py Mon Nov 23 23:30:34 2015 +0100 @@ -682,7 +682,11 @@ profile = ISATSession(self.session).profile return self.sat_host.bridge.getLastResource(jid_s, profile) - # FIXME: as this belong to a plugin, it should be managed dynamically + def jsonrpc_getFeatures(self): + """Return the available features in the backend for profile""" + profile = ISATSession(self.session).profile + return self.sat_host.bridge.getFeatures(profile) + def jsonrpc_skipOTR(self): """Tell the backend to leave OTR handling to Libervia.""" profile = ISATSession(self.session).profile