comparison src/tools/xml_tools.py @ 1736:3739f7779f17

core (xmlui): fixed bad call of deferredUI in deferXMLUI
author Goffi <goffi@goffi.org>
date Tue, 15 Dec 2015 12:20:55 +0100
parents b2d6f3c92842
children ad5da569ecf4
comparison
equal deleted inserted replaced
1735:b2d6f3c92842 1736:3739f7779f17
1280 @param security_limit: %(doc_security_limit)s 1280 @param security_limit: %(doc_security_limit)s
1281 @param chained(bool): True if the Deferred result must be returned to the frontend 1281 @param chained(bool): True if the Deferred result must be returned to the frontend
1282 useful when backend is in a series of dialogs with an ui 1282 useful when backend is in a series of dialogs with an ui
1283 @return (data): a deferred which fire the data 1283 @return (data): a deferred which fire the data
1284 """ 1284 """
1285 xmlui_d = deferredUI(xmlui) 1285 xmlui_d = deferredUI(host, xmlui, chained)
1286 action_data = {'xmlui': xmlui.toXml()} 1286 action_data = {'xmlui': xmlui.toXml()}
1287 if action_extra is not None: 1287 if action_extra is not None:
1288 action_data.update(action_extra) 1288 action_data.update(action_extra)
1289 host.actionNew(action_data, security_limit=security_limit, keep_id=xmlui.submit_id, profile=profile) 1289 host.actionNew(action_data, security_limit=security_limit, keep_id=xmlui.submit_id, profile=profile)
1290 return xmlui_d 1290 return xmlui_d