Changeset 9817
- Timestamp:
- 21 Dec 2012, 13:20:38 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r9816 r9817 2668 2668 for job_id, exporter_name, user_id in job_entries: 2669 2669 job = job_manager.get(job_id) 2670 2671 # XXX: Descr. should be improved 2672 descr = '%r, %r' % (job.args[1:], job.kwargs) 2670 exporter = getUtility(ICSVExporter, name=exporter_name) 2671 exporter_title = getattr(exporter, 'title', 'Unknown') 2672 args = ', '.join([str(x) for x in job.kwargs.values()]) 2673 descr = '%s (%s)' % (exporter_title, args) 2673 2674 status = job.finished and 'ready' or 'running' 2674 2675 status = job.failed and 'FAILED' or status 2675 show_download_button = job.finished and not job.failed2676 show_discard_button = job.finished2677 show_refresh_button = not job.finished2678 2676 start_time = getattr(job, 'begin_after', None) 2679 2677 if start_time: … … 2690 2688 start_time=start_time, 2691 2689 download_url=download_url, 2692 show_download_button = show_download_button,2693 show_refresh_button = show_refresh_button,2694 show_discard_button = show_discard_button,)2690 show_download_button = (job.finished and not job.failed), 2691 show_refresh_button = not job.finished, 2692 show_discard_button = job.finished,) 2695 2693 entries.append(new_entry) 2696 2694 self.entries = entries
Note: See TracChangeset for help on using the changeset viewer.