Changeset 9661


Ignore:
Timestamp:
17 Nov 2012, 10:43:35 (12 years ago)
Author:
uli
Message:

Update docs to reflect actual data produced. Do we really need a
starttime value?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/reports.py

    r9659 r9661  
    151151
    152152    def get_report_jobs_description(user_id=None):
    153         """Get running/completed report jobs for `user_id` as list of tuples.
     153        """Get running/completed report jobs fur `user_id` as list of tuples.
    154154
    155155        The results contain enough information to render a status page
     
    157157
    158158          (``<job_id>, <description>, <status_translated>,
    159           <discardable>, <downloadable>``)
     159          <discardable>, <downloadable>, <starttime>, <user_name>``)
    160160
    161161        in that order, with
     
    178178            downloaded. This is only true if the job finished and
    179179            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.
    180186
    181187        If ``user_id`` is ``None``, all jobs are returned.
     
    440446
    441447          (``<job_id>, <description>, <status_translated>,
    442           <discardable>, <downloadable>``)
     448          <discardable>, <downloadable>, <starttime>, <user_name>``)
    443449
    444450        in that order, with
     
    464470        ``<starttime>``
    465471            String indicating when the job was started.
     472
     473        ``<user_name>``
     474            Name of user that started the job.
    466475
    467476        If ``user_id`` is ``None``, all jobs are returned.
     
    476485            downloadable = job.finished and not job.failed
    477486            running = not (downloadable or discardable)
     487            # XXX: starttime might be better included in description
    478488            starttime = getattr(job, 'begin_after', None)
    479489            if starttime:
     490                # XXX is it really neccessary to get a localized time here?
    480491                starttime = starttime.astimezone(getUtility(IKofaUtils).tzinfo)
    481492                starttime = starttime.strftime("%Y-%m-%d %H:%M:%S %Z")
Note: See TracChangeset for help on using the changeset viewer.