diff src/tools/xml_tools.py @ 1622:5b24d6bf5d15

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
author Goffi <goffi@goffi.org>
date Tue, 17 Nov 2015 21:28:58 +0100
parents e0a152f2cf6d
children f1da3a8d08ce
line wrap: on
line diff
--- a/src/tools/xml_tools.py	Tue Nov 17 20:18:51 2015 +0100
+++ b/src/tools/xml_tools.py	Tue Nov 17 21:28:58 2015 +0100
@@ -1271,7 +1271,7 @@
     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,