comparison src/server/server.py @ 522:0de69fec24e9

browser and server sides: OTR plugin, first draft
author souliane <souliane@mailoo.org>
date Tue, 02 Sep 2014 21:28:42 +0200
parents 69bffcf37ce3
children 8492c2bb463b
comparison
equal deleted inserted replaced
521:69bffcf37ce3 522:0de69fec24e9
554 554
555 def jsonrpc_getLastResource(self, jid_s): 555 def jsonrpc_getLastResource(self, jid_s):
556 """Get the last active resource of that contact.""" 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
560 # FIXME: as this belong to a plugin, it should be managed dynamically
561 def jsonrpc_skipOTR(self):
562 """Tell the backend to leave OTR handling to Libervia."""
563 profile = ISATSession(self.session).profile
564 return self.sat_host.bridge.skipOTR(profile)
559 565
560 566
561 class Register(JSONRPCMethodManager): 567 class Register(JSONRPCMethodManager):
562 """This class manage the registration procedure with SàT 568 """This class manage the registration procedure with SàT
563 It provide an api for the browser, check password and setup the web server""" 569 It provide an api for the browser, check password and setup the web server"""