jp (blog, event): added checkURI to some command to be able to enter a xmpp: uri as argument

This commit is contained in:
Goffi 2017-06-29 20:36:35 +02:00
commit efbefbb276
2 changed files with 4 additions and 0 deletions

View file

@ -260,6 +260,7 @@ class Get(base.CommandBase, BlogCommon):
self.host.quit(C.EXIT_BRIDGE_ERRBACK)
def start(self):
common.checkURI(self.args)
self.host.bridge.mbGet(
self.args.service,
self.args.node,

View file

@ -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 @@ class Get(base.CommandBase):
self.host.quit()
def start(self):
common.checkURI(self.args)
self.host.bridge.eventGet(
self.args.service,
self.args.node,
@ -126,6 +128,7 @@ class Modify(EventBase, base.CommandBase):
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(