comparison frontends/src/jp/cmd_pubsub.py @ 2279:e2f96cd1887b

jp (cmd_pubsub): xmpp: uri handling, first draft
author Goffi <goffi@goffi.org>
date Wed, 28 Jun 2017 19:19:08 +0200
parents 5cd45a79775b
children 4bc9a2c2d6c9
comparison
equal deleted inserted replaced
2278:489efbda377c 2279:e2f96cd1887b
57 self.disp(u"can't get node configuration: {reason}".format( 57 self.disp(u"can't get node configuration: {reason}".format(
58 reason=failure_), error=True) 58 reason=failure_), error=True)
59 self.host.quit(C.EXIT_BRIDGE_ERRBACK) 59 self.host.quit(C.EXIT_BRIDGE_ERRBACK)
60 60
61 def start(self): 61 def start(self):
62 common.checkURI(self.args)
62 self.host.bridge.psNodeConfigurationGet( 63 self.host.bridge.psNodeConfigurationGet(
63 self.args.service, 64 self.args.service,
64 self.args.node, 65 self.args.node,
65 self.profile, 66 self.profile,
66 callback=self.psNodeConfigurationGetCb, 67 callback=self.psNodeConfigurationGetCb,
196 self.disp(u"can't get node affiliations: {reason}".format( 197 self.disp(u"can't get node affiliations: {reason}".format(
197 reason=failure_), error=True) 198 reason=failure_), error=True)
198 self.host.quit(C.EXIT_BRIDGE_ERRBACK) 199 self.host.quit(C.EXIT_BRIDGE_ERRBACK)
199 200
200 def start(self): 201 def start(self):
202 common.checkURI(self.args)
201 self.host.bridge.psNodeAffiliationsGet( 203 self.host.bridge.psNodeAffiliationsGet(
202 self.args.service, 204 self.args.service,
203 self.args.node, 205 self.args.node,
204 self.profile, 206 self.profile,
205 callback=self.psNodeAffiliationsGetCb, 207 callback=self.psNodeAffiliationsGetCb,
283 self.disp(u"can't get pubsub items: {reason}".format( 285 self.disp(u"can't get pubsub items: {reason}".format(
284 reason=failure_), error=True) 286 reason=failure_), error=True)
285 self.host.quit(C.EXIT_BRIDGE_ERRBACK) 287 self.host.quit(C.EXIT_BRIDGE_ERRBACK)
286 288
287 def start(self): 289 def start(self):
290 common.checkURI(self.args)
288 self.host.bridge.psItemsGet( 291 self.host.bridge.psItemsGet(
289 self.args.service, 292 self.args.service,
290 self.args.node, 293 self.args.node,
291 self.args.max, 294 self.args.max,
292 self.args.items, 295 self.args.items,