core, bridge: actionsGet:

- added a new mechanism to keep actions until they are answered (or timeout-ed)
    - keep_id must be explicitly used on actionNew
    - actionsGet is used to retrive these actions
    - the mechanism is used in deferXMLUI
This commit is contained in:
Goffi 2015-11-17 21:28:58 +01:00
commit a42452ff57

View file

@ -1271,7 +1271,7 @@ def deferXMLUI(host, xmlui, action_extra=None, security_limit=C.NO_SECURITY_LIMI
action_data = {'xmlui': xmlui.toXml()}
if action_extra is not None:
action_data.update(action_extra)
host.actionNew(action_data, profile=profile)
host.actionNew(action_data, keep_id=xmlui.submit_id, profile=profile)
return xmlui_d
def deferDialog(host, message, title=u'Please confirm', type_=C.XMLUI_DIALOG_CONFIRM, options=None,