changeset 2274:27f469d40a83

jp (pubsub): psItemGet has been renamed to psItemsGet as several items are gotten
author Goffi <goffi@goffi.org>
date Tue, 27 Jun 2017 19:38:22 +0200
parents 5f0dbf42aa9c
children 64e99bf0dfa2
files frontends/src/jp/cmd_pubsub.py
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/frontends/src/jp/cmd_pubsub.py	Tue Jun 27 19:38:22 2017 +0200
+++ b/frontends/src/jp/cmd_pubsub.py	Tue Jun 27 19:38:22 2017 +0200
@@ -272,17 +272,17 @@
         # 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 @@
             self.args.sub_id,
             {},
             self.profile,
-            callback=self.psItemGetCb,
-            errback=self.psItemGetEb)
+            callback=self.psItemsGetCb,
+            errback=self.psItemsGetEb)
 
 
 class Affiliations(base.CommandBase):