Changeset 9661
- Timestamp:
- 17 Nov 2012, 10:43:35 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/reports.py
r9659 r9661 151 151 152 152 def get_report_jobs_description(user_id=None): 153 """Get running/completed report jobs f or `user_id` as list of tuples.153 """Get running/completed report jobs fur `user_id` as list of tuples. 154 154 155 155 The results contain enough information to render a status page … … 157 157 158 158 (``<job_id>, <description>, <status_translated>, 159 <discardable>, <downloadable> ``)159 <discardable>, <downloadable>, <starttime>, <user_name>``) 160 160 161 161 in that order, with … … 178 178 downloaded. This is only true if the job finished and 179 179 didn't raised exceptions. 180 181 ``<starttime>`` 182 String indicating when the job was started. 183 184 ``<user_name>`` 185 Name of user that started the job. 180 186 181 187 If ``user_id`` is ``None``, all jobs are returned. … … 440 446 441 447 (``<job_id>, <description>, <status_translated>, 442 <discardable>, <downloadable> ``)448 <discardable>, <downloadable>, <starttime>, <user_name>``) 443 449 444 450 in that order, with … … 464 470 ``<starttime>`` 465 471 String indicating when the job was started. 472 473 ``<user_name>`` 474 Name of user that started the job. 466 475 467 476 If ``user_id`` is ``None``, all jobs are returned. … … 476 485 downloadable = job.finished and not job.failed 477 486 running = not (downloadable or discardable) 487 # XXX: starttime might be better included in description 478 488 starttime = getattr(job, 'begin_after', None) 479 489 if starttime: 490 # XXX is it really neccessary to get a localized time here? 480 491 starttime = starttime.astimezone(getUtility(IKofaUtils).tzinfo) 481 492 starttime = starttime.strftime("%Y-%m-%d %H:%M:%S %Z")
Note: See TracChangeset for help on using the changeset viewer.