The documentation of the multi_static_select input block wasn't clear
that it would trigger a call to an event handler, but apparently it does.
We don't currently impose any restrictions on what a user selects,
(any combination of rounds is valid), so we simply return a lamba_ok
value for any selection. This prevents the user from seeing a warning
sign in the dialog (where hovering over it would say that the callback
returned 502).
})
}
+def multi_static_select(turb, payload):
+ """Handler for the action of user entering a multi-select value"""
+
+ return lambda_ok
+
+actions['multi_static_select'] = {"*": multi_static_select}
+
def new_hunt(turb, payload):
"""Handler for the action of user pressing the new_hunt button"""
action = actions[0]
atype = action['type']
- avalue = action['value']
+ if 'value' in action:
+ avalue = action['value']
+ else:
+ avalue = '*'
if (
atype in turbot.interaction.actions