Commit cbcc8942 authored by Alexandre Boeglin's avatar Alexandre Boeglin

Pass selection to stat methods, instead of only selection params.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1775 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0e842b5e
......@@ -1304,9 +1304,10 @@ onChange="submitAction(this.form,'%s/portal_selections/setReportRoot')">
#LOG('ListBox', 0, 'column = %s, value = %s' % (repr(column), repr(value)))
if callable(attribute_value):
try:
params = dict(kw)
#params = dict(kw)
#params['operator'] = stats[n]
attribute_value=attribute_value(**params)
#attribute_value=attribute_value(**params)
attribute_value=attribute_value(selection=selection)
except:
LOG('ListBox', 0, 'WARNING: Could not call %s with %s: ' % (repr(attribute_value), repr(params)), error=sys.exc_info())
pass
......@@ -1473,9 +1474,10 @@ onChange="submitAction(this.form,'%s/portal_selections/setReportRoot')">
#LOG('ListBox', 0, 'column = %s, value = %s' % (repr(column), repr(value)))
if callable(value):
try:
params = dict(kw)
#params = dict(kw)
#params['operator'] = stats[n]
value=value(**params)
#value=value(**params)
value=value(selection=selection)
except:
LOG('ListBox', 0, 'WARNING: Could not call %s with %s: ' % (repr(value), repr(params)), error=sys.exc_info())
pass
......
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