Mercurial > libervia-backend
comparison frontends/src/jp/cmd_event.py @ 2299:a3cd2ac25d58
jp (event): added checkURI to InviteeGet and InviteeSet
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 02 Jul 2017 20:09:24 +0200 |
parents | c05000d00dbb |
children | 173d56315529 |
comparison
equal
deleted
inserted
replaced
2298:276e546b7619 | 2299:a3cd2ac25d58 |
---|---|
162 def eventInviteeGetCb(self, event_data): | 162 def eventInviteeGetCb(self, event_data): |
163 self.output(event_data) | 163 self.output(event_data) |
164 self.host.quit() | 164 self.host.quit() |
165 | 165 |
166 def start(self): | 166 def start(self): |
167 common.checkURI(self.args) | |
167 self.host.bridge.eventInviteeGet( | 168 self.host.bridge.eventInviteeGet( |
168 self.args.service, | 169 self.args.service, |
169 self.args.node, | 170 self.args.node, |
170 self.profile, | 171 self.profile, |
171 callback=self.eventInviteeGetCb, | 172 callback=self.eventInviteeGetCb, |
182 def add_parser_options(self): | 183 def add_parser_options(self): |
183 self.parser.add_argument("-f", "--field", type=base.unicode_decoder, action='append', nargs=2, dest='fields', | 184 self.parser.add_argument("-f", "--field", type=base.unicode_decoder, action='append', nargs=2, dest='fields', |
184 metavar=(u"KEY", u"VALUE"), help=_(u"configuration field to set")) | 185 metavar=(u"KEY", u"VALUE"), help=_(u"configuration field to set")) |
185 | 186 |
186 def start(self): | 187 def start(self): |
188 common.checkURI(self.args) | |
187 fields = dict(self.args.fields) if self.args.fields else {} | 189 fields = dict(self.args.fields) if self.args.fields else {} |
188 self.host.bridge.eventInviteeSet( | 190 self.host.bridge.eventInviteeSet( |
189 self.args.service, | 191 self.args.service, |
190 self.args.node, | 192 self.args.node, |
191 fields, | 193 fields, |