Mercurial > libervia-backend
changeset 2614:a5b96950b81a
jp (event): fixed crash on missing item in get and inviteeGet by making it mandatory.
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 21 Jun 2018 01:21:44 +0200 (2018-06-20) |
parents | 9680cd958529 |
children | b4ecbcc2fd08 |
files | sat_frontends/jp/base.py sat_frontends/jp/cmd_event.py |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/sat_frontends/jp/base.py Thu Jun 21 01:21:44 2018 +0200 +++ b/sat_frontends/jp/base.py Thu Jun 21 01:21:44 2018 +0200 @@ -742,6 +742,7 @@ - pubsub_flags(iterable[unicode]): tuple of flags to set pubsub options, can be: C.SERVICE: service is required C.NODE: node is required + C.ITEM: item is required C.SINGLE_ITEM: only one item is allowed @attribute need_loop(bool): to set by commands when loop is needed """
--- a/sat_frontends/jp/cmd_event.py Thu Jun 21 01:21:44 2018 +0200 +++ b/sat_frontends/jp/cmd_event.py Thu Jun 21 01:21:44 2018 +0200 @@ -42,7 +42,7 @@ host, 'get', use_output=C.OUTPUT_DICT, - use_pubsub=True, pubsub_flags={C.NODE, C.SINGLE_ITEM}, + use_pubsub=True, pubsub_flags={C.NODE, C.ITEM, C.SINGLE_ITEM}, use_verbose=True, help=_(u'get event data')) self.need_loop=True @@ -152,7 +152,7 @@ host, 'get', use_output=C.OUTPUT_DICT, - use_pubsub=True, pubsub_flags={C.NODE}, + use_pubsub=True, pubsub_flags={C.NODE, C.ITEM, C.SINGLE_ITEM}, use_verbose=True, help=_(u'get event attendance')) self.need_loop=True