Commit 3c4cea0f authored by Yoshinori Okuji's avatar Yoshinori Okuji

Consider select when showing statistics.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1091 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 45a3ac2c
...@@ -1109,21 +1109,11 @@ onChange="submitAction(this.form,'%s/portal_selections/setReportRoot')"> ...@@ -1109,21 +1109,11 @@ onChange="submitAction(this.form,'%s/portal_selections/setReportRoot')">
count_results = selection(selection_method = stat_method, count_results = selection(selection_method = stat_method,
context=here, REQUEST=REQUEST) context=here, REQUEST=REQUEST)
list_body = list_body + '<tr>' list_body = list_body + '<tr>'
for n in range((len(extended_columns) + select + report_tree)): if report_tree:
if n == 0 and report_tree == 1:
list_body += '<td class="Data">&nbsp;</td>' list_body += '<td class="Data">&nbsp;</td>'
elif report_tree == 1: if select:
try:
alias = extended_columns[n-1][2]
value = getattr(count_results[0],alias,'')
if callable(value): value=value()
if type(value) is type(1.0):
list_body += '<td class="Data" align="right">%.2f</td>' % value
else:
list_body += '<td class="Data">' + str(value) + '</td>'
except:
list_body += '<td class="Data">&nbsp;</td>' list_body += '<td class="Data">&nbsp;</td>'
else: for n in range((len(extended_columns))):
try: try:
alias = extended_columns[n][2] alias = extended_columns[n][2]
value = getattr(count_results[0],alias,'') value = getattr(count_results[0],alias,'')
......
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