diff sat_frontends/jp/cmd_event.py @ 2910:b2f323237fce

jp, plugin merge-requests: used u'' as default for item id in pubsub arguments + fixed some required arguments: u"" is now used as defaut item id instead of node, as it needs to be serialised anyway. This is temporary solution, as empty string can be used for item id (not forbidden by XEP-0060), but for now this is not handled correctly in jp/SàT (see https://bugs.goffi.org/bugs/view/289). Correct solution will probably need to use a special key in extra to mark empty string in id. Added/removed some required values for node or item when it made sense.
author Goffi <goffi@goffi.org>
date Sun, 14 Apr 2019 08:21:51 +0200
parents 003b8b4b56a7
children ab2696e34d29
line wrap: on
line diff
--- a/sat_frontends/jp/cmd_event.py	Sun Apr 14 08:21:51 2019 +0200
+++ b/sat_frontends/jp/cmd_event.py	Sun Apr 14 08:21:51 2019 +0200
@@ -43,7 +43,7 @@
             "get",
             use_output=C.OUTPUT_DICT,
             use_pubsub=True,
-            pubsub_flags={C.NODE, C.ITEM, C.SINGLE_ITEM},
+            pubsub_flags={C.SINGLE_ITEM},
             use_verbose=True,
             help=_(u"get event data"),
         )
@@ -125,7 +125,6 @@
             host,
             "create",
             use_pubsub=True,
-            pubsub_flags={C.NODE},
             help=_("create or replace event"),
         )
         EventBase.__init__(self)