comparison src/tools/xml_tools.py @ 1645:f1da3a8d08ce

core (xmlui): fixed security_limit in deferXMLUI
author Goffi <goffi@goffi.org>
date Sun, 22 Nov 2015 21:24:23 +0100
parents 5b24d6bf5d15
children 0fdd8fe34fbf
comparison
equal deleted inserted replaced
1644:98a2eb768bb0 1645:f1da3a8d08ce
1269 1269
1270 xmlui.submit_id = host.registerCallback(onSubmit, with_data=True, one_shot=True) 1270 xmlui.submit_id = host.registerCallback(onSubmit, with_data=True, one_shot=True)
1271 action_data = {'xmlui': xmlui.toXml()} 1271 action_data = {'xmlui': xmlui.toXml()}
1272 if action_extra is not None: 1272 if action_extra is not None:
1273 action_data.update(action_extra) 1273 action_data.update(action_extra)
1274 host.actionNew(action_data, keep_id=xmlui.submit_id, profile=profile) 1274 host.actionNew(action_data, security_limit=security_limit, keep_id=xmlui.submit_id, profile=profile)
1275 return xmlui_d 1275 return xmlui_d
1276 1276
1277 def deferDialog(host, message, title=u'Please confirm', type_=C.XMLUI_DIALOG_CONFIRM, options=None, 1277 def deferDialog(host, message, title=u'Please confirm', type_=C.XMLUI_DIALOG_CONFIRM, options=None,
1278 action_extra=None, security_limit=C.NO_SECURITY_LIMIT, profile=C.PROF_KEY_NONE): 1278 action_extra=None, security_limit=C.NO_SECURITY_LIMIT, profile=C.PROF_KEY_NONE):
1279 """Create a submitable dialog and manage it with a deferred 1279 """Create a submitable dialog and manage it with a deferred