Mercurial > libervia-backend
comparison sat_frontends/jp/cmd_pubsub.py @ 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 | 864485605d12 |
children | be6d91572633 |
comparison
equal
deleted
inserted
replaced
3466:80f8635dc66e | 3467:5901a7170528 |
---|---|
876 message = _("Are you sure to delete item {item_id} ?").format( | 876 message = _("Are you sure to delete item {item_id} ?").format( |
877 item_id=self.args.item | 877 item_id=self.args.item |
878 ) | 878 ) |
879 await self.host.confirmOrQuit(message, _("item deletion cancelled")) | 879 await self.host.confirmOrQuit(message, _("item deletion cancelled")) |
880 try: | 880 try: |
881 await self.host.bridge.psRetractItem( | 881 await self.host.bridge.psItemRetract( |
882 self.args.service, | 882 self.args.service, |
883 self.args.node, | 883 self.args.node, |
884 self.args.item, | 884 self.args.item, |
885 self.args.notify, | 885 self.args.notify, |
886 self.profile, | 886 self.profile, |
1686 item_elt, __ = xml_tools.etreeParse(self, item) | 1686 item_elt, __ = xml_tools.etreeParse(self, item) |
1687 item_id = item_elt.get('id') | 1687 item_id = item_elt.get('id') |
1688 self.disp(_(f"Deleting item {item_id}")) | 1688 self.disp(_(f"Deleting item {item_id}")) |
1689 if self.args.apply: | 1689 if self.args.apply: |
1690 try: | 1690 try: |
1691 await self.host.bridge.psRetractItem( | 1691 await self.host.bridge.psItemRetract( |
1692 self.args.service, | 1692 self.args.service, |
1693 self.args.node, | 1693 self.args.node, |
1694 item_id, | 1694 item_id, |
1695 False, | 1695 False, |
1696 self.profile, | 1696 self.profile, |