changeset 2284:4fd010f29f99

jp (blog, event): added checkURI to some command to be able to enter a xmpp: uri as argument
author Goffi <goffi@goffi.org>
date Thu, 29 Jun 2017 20:36:35 +0200
parents 5b04fc0c663d
children 688ff67d6ae9
files frontends/src/jp/cmd_blog.py frontends/src/jp/cmd_event.py
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/frontends/src/jp/cmd_blog.py	Thu Jun 29 20:35:07 2017 +0200
+++ b/frontends/src/jp/cmd_blog.py	Thu Jun 29 20:36:35 2017 +0200
@@ -260,6 +260,7 @@
         self.host.quit(C.EXIT_BRIDGE_ERRBACK)
 
     def start(self):
+        common.checkURI(self.args)
         self.host.bridge.mbGet(
             self.args.service,
             self.args.node,
--- a/frontends/src/jp/cmd_event.py	Thu Jun 29 20:35:07 2017 +0200
+++ b/frontends/src/jp/cmd_event.py	Thu Jun 29 20:36:35 2017 +0200
@@ -21,6 +21,7 @@
 import base
 from sat.core.i18n import _
 from sat_frontends.jp.constants import Const as C
+from sat_frontends.jp import common
 from functools import partial
 from dateutil import parser as du_parser
 import calendar
@@ -53,6 +54,7 @@
         self.host.quit()
 
     def start(self):
+        common.checkURI(self.args)
         self.host.bridge.eventGet(
             self.args.service,
             self.args.node,
@@ -126,6 +128,7 @@
         self.need_loop=True
 
     def start(self):
+        common.checkURI(self.args)
         fields = self.parseFields()
         date = 0 if not self.args.date else self.parseDate()
         self.host.bridge.eventModify(