diff sat_frontends/jp/cmd_event.py @ 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
parents 26edcf3a30eb
children 1cc88adb5142
line wrap: on
line diff
--- 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