Mercurial > libervia-backend
diff frontends/src/jp/cmd_pubsub.py @ 2442:b8ffb7f8056b
plugin XEP-0060: added "options" argument to psSubscribe, and return subscription id if present
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 19 Nov 2017 16:41:59 +0100 |
parents | 6908fe4c6eca |
children | 83f9b9ff1a54 |
line wrap: on
line diff
--- a/frontends/src/jp/cmd_pubsub.py Sun Nov 19 16:38:35 2017 +0100 +++ b/frontends/src/jp/cmd_pubsub.py Sun Nov 19 16:41:59 2017 +0100 @@ -658,14 +658,17 @@ def add_parser_options(self): pass - def psSubscribeCb(self): + def psSubscribeCb(self, sub_id): self.disp(_(u'subscription done'), 1) + if sub_id: + self.disp(_(u'subscription id: {sub_id}').format(sub_id=sub_id)) self.host.quit() def start(self): self.host.bridge.psSubscribe( self.args.service, self.args.node, + {}, self.profile, callback=self.psSubscribeCb, errback=partial(self.errback,