Changeset 9677


Ignore:
Timestamp:
18 Nov 2012, 09:16:52 (12 years ago)
Author:
Henrik Bettermann
Message:

Discarding a job must be logged.

File:
1 edited

Legend:

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

    r9674 r9677  
    4848            self.context.delete_report_entry(entry)
    4949            self.flash('Report discarded: %s' % job_id)
     50            ob_class = self.__implemented__.__name__.replace('waeup.kofa.','')
     51            grok.getSite().logger.info('%s - discarded: %s' % (ob_class, job_id))
    5052        self.entries = self._generate_entries(user_id=None)
    5153        if job_id and DOWNLOAD:
     
    7072                    getUtility(
    7173                        IKofaUtils).tzinfo).strftime("%Y-%m-%d %H:%M:%S %Z")
    72             new_entry = (job_id, descr, status, job.finished, job.finished and not job.failed, not job.finished, starttime, user)
     74            new_entry = (job_id, descr, status, job.finished, job.finished \
     75                and not job.failed, not job.finished, starttime, user)
    7376            entries.append(new_entry)
    7477        return entries
Note: See TracChangeset for help on using the changeset viewer.