jp (pubsub): psItemGet has been renamed to psItemsGet as several items are gotten

This commit is contained in:
Goffi 2017-06-27 19:38:22 +02:00
commit 5af5b344e5

View file

@ -272,17 +272,17 @@ class Get(base.CommandBase):
# TODO: add MAM filters
def psItemGetCb(self, ps_result):
def psItemsGetCb(self, ps_result):
self.output(ps_result[0])
self.host.quit(C.EXIT_OK)
def psItemGetEb(self, failure_):
def psItemsGetEb(self, failure_):
self.disp(u"can't get pubsub items: {reason}".format(
reason=failure_), error=True)
self.host.quit(C.EXIT_BRIDGE_ERRBACK)
def start(self):
self.host.bridge.psItemGet(
self.host.bridge.psItemsGet(
self.args.service,
self.args.node,
self.args.max,
@ -290,8 +290,8 @@ class Get(base.CommandBase):
self.args.sub_id,
{},
self.profile,
callback=self.psItemGetCb,
errback=self.psItemGetEb)
callback=self.psItemsGetCb,
errback=self.psItemsGetEb)
class Affiliations(base.CommandBase):