changeset 3467:5901a7170528

plugin XEP-0060: renamed `psRetractItem(s)` to `psItem(s)Retract` for consistency.
author Goffi <goffi@goffi.org>
date Fri, 19 Feb 2021 15:53:27 +0100
parents 80f8635dc66e
children 36cac8e6f57d
files sat/plugins/plugin_xep_0060.py sat_frontends/jp/cmd_pubsub.py
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0060.py	Fri Feb 19 15:53:25 2021 +0100
+++ b/sat/plugins/plugin_xep_0060.py	Fri Feb 19 15:53:27 2021 +0100
@@ -214,7 +214,7 @@
             async_=True,
         )
         host.bridge.addMethod(
-            "psRetractItem",
+            "psItemRetract",
             ".plugin",
             in_sign="sssbs",
             out_sign="",
@@ -222,7 +222,7 @@
             async_=True,
         )
         host.bridge.addMethod(
-            "psRetractItems",
+            "psItemsRetract",
             ".plugin",
             in_sign="ssasbs",
             out_sign="",
--- a/sat_frontends/jp/cmd_pubsub.py	Fri Feb 19 15:53:25 2021 +0100
+++ b/sat_frontends/jp/cmd_pubsub.py	Fri Feb 19 15:53:27 2021 +0100
@@ -878,7 +878,7 @@
             )
             await self.host.confirmOrQuit(message, _("item deletion cancelled"))
         try:
-            await self.host.bridge.psRetractItem(
+            await self.host.bridge.psItemRetract(
                 self.args.service,
                 self.args.node,
                 self.args.item,
@@ -1688,7 +1688,7 @@
                 self.disp(_(f"Deleting item {item_id}"))
                 if self.args.apply:
                     try:
-                        await self.host.bridge.psRetractItem(
+                        await self.host.bridge.psItemRetract(
                             self.args.service,
                             self.args.node,
                             item_id,