Mercurial > libervia-backend
changeset 2239:17502e74c046
jp (pubsub/uri): fixed URI generation
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 19 May 2017 12:33:54 +0200 |
parents | 228d208fb5db |
children | 4b66f070cfbb |
files | frontends/src/jp/cmd_pubsub.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/frontends/src/jp/cmd_pubsub.py Fri May 19 12:33:11 2017 +0200 +++ b/frontends/src/jp/cmd_pubsub.py Fri May 19 12:33:54 2017 +0200 @@ -332,7 +332,7 @@ self.parser.add_argument("-p", "--profile", type=base.unicode_decoder, default=C.PROF_KEY_DEFAULT, help=_(u"profile (used when no server is specified)")) def display_uri(self, jid_): - uri_args = {u'type': 'pubsub'} + uri_args = {} if not self.args.service: self.args.service = jid.JID(jid_).bare @@ -342,7 +342,7 @@ key = 'path' if value: uri_args[key] = value - self.disp(uri.buildXMPPUri(**uri_args)) + self.disp(uri.buildXMPPUri(u'pubsub', **uri_args)) self.host.quit() def start(self):