# HG changeset patch # User Goffi # Date 1450179667 -3600 # Node ID ad5da569ecf41342f876f86aa4879a50f55d569f # Parent 3739f7779f17060c217d283bd3de56f297624ff2 core (xmlui): fixed deferConfirm diff -r 3739f7779f17 -r ad5da569ecf4 src/tools/xml_tools.py --- a/src/tools/xml_tools.py Tue Dec 15 12:20:55 2015 +0100 +++ b/src/tools/xml_tools.py Tue Dec 15 12:41:07 2015 +0100 @@ -1290,7 +1290,7 @@ return xmlui_d def deferDialog(host, message, title=u'Please confirm', type_=C.XMLUI_DIALOG_CONFIRM, options=None, - action_extra=None, security_limit=C.NO_SECURITY_LIMIT, profile=C.PROF_KEY_NONE): + action_extra=None, security_limit=C.NO_SECURITY_LIMIT, chained=False, profile=C.PROF_KEY_NONE): """Create a submitable dialog and manage it with a deferred @param message(unicode): message to display @@ -1300,6 +1300,8 @@ @param action_extra(None, dict): extra action to merge with xmlui mainly used to add meta informations (see actionNew doc) @param security_limit: %(doc_security_limit)s + @param chained(bool): True if the Deferred result must be returned to the frontend + useful when backend is in a series of dialogs with an ui @param profile: %(doc_profile)s @return (dict): Deferred dict """ @@ -1308,7 +1310,7 @@ if options is not None: dialog_opt.update(options) dialog = XMLUI(C.XMLUI_DIALOG, title=title, dialog_opt=dialog_opt, submit_id='') - return deferXMLUI(host, dialog, action_extra, security_limit, profile) + return deferXMLUI(host, dialog, action_extra, security_limit, chained, profile) def deferConfirm(*args, **kwargs): """call deferDialog and return a boolean instead of the whole data dict"""