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

Add permission to roles.

Show user id on reports page.

Show reports of all users (to be discussed).

Location:
main/waeup.kofa/trunk/src/waeup/kofa/browser
Files:
2 edited

Legend:

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

    r9637 r9645  
    4545    def update(self, job_id=None, DISCARD=None, DOWNLOAD=None):
    4646        self.entries = []
    47         user_id = self.request.principal.id
     47        #user_id = self.request.principal.id
    4848        if job_id and DISCARD:
    4949            entry = self.context.report_entry_from_job_id(job_id)
    5050            self.context.delete_report_entry(entry)
    5151            self.flash('Report discarded: %s' % job_id)
    52         self.entries = self.context.get_report_jobs_description(user_id)
     52        self.entries = self.context.get_report_jobs_description()
    5353        if job_id and DOWNLOAD:
    5454            self.redirect(self._report_url(job_id))
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/reportscontainerpage.pt

    r9644 r9645  
    55        <th i18n:translate="">Report Number</th>
    66        <th i18n:translate="">Description</th>
     7        <th i18n:translate="">Creator</th>
    78        <th i18n:translate="">Creation Date</th>
    89        <th i18n:translate="">Status</th>
     
    1718        <td>
    1819          <span tal:replace="python: entry[1]">REPORT DESCRIPTION</span>
     20        </td>
     21        <td>
     22          <span tal:replace="python: entry[6]">CREATOR</span>
    1923        </td>
    2024        <td nowrap>
Note: See TracChangeset for help on using the changeset viewer.