Changeset 14519 for main/waeup.kofa/trunk
- Timestamp:
- 8 Feb 2017, 09:22:23 (8 years ago)
- Location:
- main/waeup.kofa/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/CHANGES.txt
r14514 r14519 4 4 1.4.2.dev0 (unreleased) 5 5 ======================= 6 7 * Sort arguments in table of `ReportsContainerPage`. 6 8 7 9 * Add `entry_session` and `p_session` filter to Student Payment Statistics -
main/waeup.kofa/trunk/src/waeup/kofa/browser/reports.py
r14171 r14519 89 89 generator = queryUtility(IReportGenerator, name=gen_name) 90 90 gen_title = translate(getattr(generator, 'title', _('Unknown'))) 91 args = ', '.join([str(x) for x in job.kwargs['kw'].values()]) 92 descr = '%s (%s)' % (gen_title, args) 91 # Sort arguments 92 sorted_items = sorted( 93 job.kwargs['kw'].items(), key=lambda value:value[0]) 94 sorted_values = [i[1] for i in sorted_items] 95 arguments = ', '.join([str(x) for x in sorted_values]) 96 descr = '%s (%s)' % (gen_title, arguments) 93 97 status = job.finished and 'ready' or 'running' 94 98 status = job.failed and 'FAILED' or status
Note: See TracChangeset for help on using the changeset viewer.