Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0096.py @ 540:47e45a577ab7
plugin XEP-0096: restored XEP-0065 usage
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 12 Nov 2012 10:55:44 +0100 |
parents | 2c4016921403 |
children | ca13633d3b6b |
comparison
equal
deleted
inserted
replaced
539:428fa16363e7 | 540:47e45a577ab7 |
---|---|
48 class XEP_0096(): | 48 class XEP_0096(): |
49 | 49 |
50 def __init__(self, host): | 50 def __init__(self, host): |
51 info(_("Plugin XEP_0096 initialization")) | 51 info(_("Plugin XEP_0096 initialization")) |
52 self.host = host | 52 self.host = host |
53 self.managed_stream_m = [#self.host.plugins["XEP-0065"].NAMESPACE, | 53 self.managed_stream_m = [self.host.plugins["XEP-0065"].NAMESPACE, |
54 self.host.plugins["XEP-0047"].NAMESPACE] #Stream methods managed | 54 self.host.plugins["XEP-0047"].NAMESPACE] #Stream methods managed |
55 self.host.plugins["XEP-0095"].registerSIProfile(PROFILE_NAME, self.transferRequest) | 55 self.host.plugins["XEP-0095"].registerSIProfile(PROFILE_NAME, self.transferRequest) |
56 host.bridge.addMethod("sendFile", ".plugin", in_sign='ssa{ss}s', out_sign='s', method=self.sendFile) | 56 host.bridge.addMethod("sendFile", ".plugin", in_sign='ssa{ss}s', out_sign='s', method=self.sendFile) |
57 | 57 |
58 def profileConnected(self, profile): | 58 def profileConnected(self, profile): |