'@todo: docstring?'

def display_job(self, upload_id):

    db = current.db
    request = self.request
    table = self.upload_table
    job_id = self.job_id
    if (job_id is None):
        query = (table.id == upload_id)
        db(query).update(status=2)
        current.session.warning = self.messages.no_records_to_import
        redirect(URL(r=request, f=self.function, args=['import']))
    query = (table.id == upload_id)
    row = db(query).select(table.status, table.modified_on, table.summary_added, table.summary_error, table.summary_ignored, limitby=(0, 1)).first()
    status = row.status
    if (status == 3):
        result = (row.summary_added, row.summary_error, row.summary_ignored)
        self._display_completed_job(result, row.modified_on)
        redirect(URL(r=request, f=self.function, args=['import']))
    output = self._create_import_item_dataTable(upload_id, job_id)
    if (request.representation == 'aadata'):
        return output
    response = current.response
    response.view = self._view(request, 'list.html')
    if response.s3.error_report:
        error_report = ('Errors|' + '|'.join(response.s3.error_report))
        error_tip = A('All    Errors', _class='errortip', _title=error_report)
    else:
        error_tip = ''
    rowcount = len(self._get_all_items(upload_id))
    rheader = DIV(TABLE(TR(TH(('%s:    ' % self.messages.job_total_records)), TD(rowcount, _id='totalAvailable'), TH(('%s:    ' % self.messages.job_records_selected)), TD(0, _id='totalSelected'), TH(error_tip))))
    output['title'] = self.messages.title_job_read
    output['rheader'] = rheader
    output['subtitle'] = self.messages.title_job_list
    return output
