Commit 1cfa75e1 authored by Tomáš Peterka's avatar Tomáš Peterka

[accounting] State script's input parameters and do not try to grab them from request

parent 7e0e3fed
......@@ -9,8 +9,10 @@ else:
title = explanation.getTitle()
analytic_property_list = [explanation.getReference()]
if analytic_column_list is None:
analytic_column_list = request.get('analytic_column_list', ())
for property_name, property_title in request['analytic_column_list']: #pylint: disable=unused-variable
for property_name, property_title in analytic_column_list: #pylint: disable=unused-variable
# XXX it would be a little better to reuse editable field
if property_name == 'project':
analytic_property_list.append(brain.Movement_getProjectTitle())
......
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>brain, selection=None, **kwd</string> </value>
<value> <string>brain, selection=None, analytic_column_list=(), **kwd</string> </value>
</item>
<item>
<key> <string>id</string> </key>
......
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