jp (blog, event): added checkURI to some command to be able to enter a xmpp: uri as argument
This commit is contained in:
parent
706fddbd9e
commit
efbefbb276
2 changed files with 4 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue