comparison frontends/src/jp/cmd_pubsub.py @ 2392:b29a53fb270d

jp (pubsub/delete): show deleted node + handle URIs
author Goffi <goffi@goffi.org>
date Fri, 27 Oct 2017 08:33:48 +0200
parents 47516e90d26a
children 8b37a62336c3
comparison
equal deleted inserted replaced
2391:07e1543d6992 2392:b29a53fb270d
128 128
129 def add_parser_options(self): 129 def add_parser_options(self):
130 self.parser.add_argument('-f', '--force', action='store_true', help=_(u'delete node without confirmation')) 130 self.parser.add_argument('-f', '--force', action='store_true', help=_(u'delete node without confirmation'))
131 131
132 def psNodeDeleteCb(self): 132 def psNodeDeleteCb(self):
133 self.disp(_(u'node deleted successfully')) 133 self.disp(_(u'node [{node}] deleted successfully').format(node=self.args.node))
134 self.host.quit() 134 self.host.quit()
135 135
136 def start(self): 136 def start(self):
137 common.checkURI(self.args)
137 if not self.args.force: 138 if not self.args.force:
138 if not self.args.service: 139 if not self.args.service:
139 message = _(u"Are you sure to delete pep node [{node_id}] ?").format( 140 message = _(u"Are you sure to delete pep node [{node_id}] ?").format(
140 node_id=self.args.node) 141 node_id=self.args.node)
141 else: 142 else: