# HG changeset patch # User Goffi # Date 1529536904 -7200 # Node ID a5b96950b81aeeaad3a67c963327b3d1eeda0313 # Parent 9680cd958529b322571e4ea9a0171f8ce032a9e1 jp (event): fixed crash on missing item in get and inviteeGet by making it mandatory. diff -r 9680cd958529 -r a5b96950b81a sat_frontends/jp/base.py --- 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 """ diff -r 9680cd958529 -r a5b96950b81a sat_frontends/jp/cmd_event.py --- 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