Commit 4b71e694 authored by Tomáš Peterka's avatar Tomáš Peterka Committed by Tomáš Peterka

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

parent e79eba72
...@@ -9,8 +9,10 @@ else: ...@@ -9,8 +9,10 @@ else:
title = explanation.getTitle() title = explanation.getTitle()
analytic_property_list = [explanation.getReference()] 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 # XXX it would be a little better to reuse editable field
if property_name == 'project': if property_name == 'project':
analytic_property_list.append(brain.Movement_getProjectTitle()) analytic_property_list.append(brain.Movement_getProjectTitle())
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <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>
<item> <item>
<key> <string>id</string> </key> <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