From 5af5b344e59f6176cdb5d03dea83cb7adb200407 Mon Sep 17 00:00:00 2001 From: Goffi Date: Tue, 27 Jun 2017 19:38:22 +0200 Subject: [PATCH] jp (pubsub): psItemGet has been renamed to psItemsGet as several items are gotten --- frontends/src/jp/cmd_pubsub.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontends/src/jp/cmd_pubsub.py b/frontends/src/jp/cmd_pubsub.py index 3d9ccbd2..29b96dfd 100644 --- a/frontends/src/jp/cmd_pubsub.py +++ b/frontends/src/jp/cmd_pubsub.py @@ -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):