Commit e6d0701a authored by Sebastien Robin's avatar Sebastien Robin

added listbox parameter when we want to start a script


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@630 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7c2e1a8b
##parameters=form_id,cancel_url,dialog_method,selection_name,dialog_id
##parameters=form_id,cancel_url,dialog_method,selection_name,dialog_id,**kw
# Updates attributes of an Zope document
# which is in a class inheriting from ERP5 Base
......@@ -46,6 +46,14 @@ try:
import_file = kw['import_file']
return getattr(context,dialog_method)(**kw)
if has_listbox:
listbox_line_list = []
listbox = getattr(request,'listbox',None)
for key in listbox.keys():
listbox_line = listbox[key]
listbox_line['listbox_key'] = key
listbox_line_list.append(listbox[key])
listbox_line_list = tuple(listbox_line_list)
kw['listbox'] = listbox_line_list
return getattr(context,dialog_method)(**kw)
url_params_string = make_query(kw)
except FormValidationError, validation_errors:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment