Mercurial > libervia-web
comparison src/server/server.py @ 521:69bffcf37ce3
browser_side: add minimal requirements for generic plugins handling
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 02 Sep 2014 21:26:32 +0200 |
parents | d58d4dd0cefe |
children | 0de69fec24e9 |
comparison
equal
deleted
inserted
replaced
520:d58d4dd0cefe | 521:69bffcf37ce3 |
---|---|
551 @return: converted text """ | 551 @return: converted text """ |
552 profile = ISATSession(self.session).profile | 552 profile = ISATSession(self.session).profile |
553 return self.sat_host.bridge.syntaxConvert(text, syntax_from, syntax_to, True, profile) | 553 return self.sat_host.bridge.syntaxConvert(text, syntax_from, syntax_to, True, profile) |
554 | 554 |
555 def jsonrpc_getLastResource(self, jid_s): | 555 def jsonrpc_getLastResource(self, jid_s): |
556 """Tell the backend to leave us OTR handling""" | 556 """Get the last active resource of that contact.""" |
557 profile = ISATSession(self.session).profile | 557 profile = ISATSession(self.session).profile |
558 return self.sat_host.bridge.getLastResource(jid_s, profile) | 558 return self.sat_host.bridge.getLastResource(jid_s, profile) |
559 | 559 |
560 | 560 |
561 class Register(JSONRPCMethodManager): | 561 class Register(JSONRPCMethodManager): |