jp (pubsub/uri): fixed URI generation
This commit is contained in:
parent
1cfd34c38d
commit
4ea36624a2
1 changed files with 2 additions and 2 deletions
|
|
@ -332,7 +332,7 @@ class Uri(base.CommandBase):
|
||||||
self.parser.add_argument("-p", "--profile", type=base.unicode_decoder, default=C.PROF_KEY_DEFAULT, help=_(u"profile (used when no server is specified)"))
|
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_):
|
def display_uri(self, jid_):
|
||||||
uri_args = {u'type': 'pubsub'}
|
uri_args = {}
|
||||||
if not self.args.service:
|
if not self.args.service:
|
||||||
self.args.service = jid.JID(jid_).bare
|
self.args.service = jid.JID(jid_).bare
|
||||||
|
|
||||||
|
|
@ -342,7 +342,7 @@ class Uri(base.CommandBase):
|
||||||
key = 'path'
|
key = 'path'
|
||||||
if value:
|
if value:
|
||||||
uri_args[key] = value
|
uri_args[key] = value
|
||||||
self.disp(uri.buildXMPPUri(**uri_args))
|
self.disp(uri.buildXMPPUri(u'pubsub', **uri_args))
|
||||||
self.host.quit()
|
self.host.quit()
|
||||||
|
|
||||||
def start(self):
|
def start(self):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue