Changeset 9645 for main/waeup.kofa
- Timestamp:
- 16 Nov 2012, 10:17:52 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/reports.py
r9637 r9645 45 45 def update(self, job_id=None, DISCARD=None, DOWNLOAD=None): 46 46 self.entries = [] 47 user_id = self.request.principal.id47 #user_id = self.request.principal.id 48 48 if job_id and DISCARD: 49 49 entry = self.context.report_entry_from_job_id(job_id) 50 50 self.context.delete_report_entry(entry) 51 51 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() 53 53 if job_id and DOWNLOAD: 54 54 self.redirect(self._report_url(job_id)) -
main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/reportscontainerpage.pt
r9644 r9645 5 5 <th i18n:translate="">Report Number</th> 6 6 <th i18n:translate="">Description</th> 7 <th i18n:translate="">Creator</th> 7 8 <th i18n:translate="">Creation Date</th> 8 9 <th i18n:translate="">Status</th> … … 17 18 <td> 18 19 <span tal:replace="python: entry[1]">REPORT DESCRIPTION</span> 20 </td> 21 <td> 22 <span tal:replace="python: entry[6]">CREATOR</span> 19 23 </td> 20 24 <td nowrap> -
main/waeup.kofa/trunk/src/waeup/kofa/permissions.py
r9637 r9645 227 227 'waeup.loginAsStudent', 228 228 'waeup.manageReports', 229 'waeup.manageJobs', 229 230 ) 230 231 … … 255 256 #'waeup.loginAsStudent', 256 257 'waeup.manageReports', 258 #'waeup.manageJobs', 257 259 ) 258 260 -
main/waeup.kofa/trunk/src/waeup/kofa/reports.py
r9644 r9645 154 154 155 155 def get_report_jobs_description(user_id=None): 156 """Get running/completed report jobs f ur `user_id` as list of tuples.156 """Get running/completed report jobs for `user_id` as list of tuples. 157 157 158 158 The results contain enough information to render a status page … … 490 490 continue 491 491 result.append((job_id, job.description, status, 492 discardable, downloadable, starttime ),)492 discardable, downloadable, starttime, user_name),) 493 493 return result 494 494 -
main/waeup.kofa/trunk/src/waeup/kofa/tests/test_reports.py
r9644 r9645 395 395 self.assertEqual( 396 396 result, 397 [('2', 'Report 1 ()', u'running', False, False, None ),]397 [('2', 'Report 1 ()', u'running', False, False, None, 'bob'),] 398 398 ) 399 399 return
Note: See TracChangeset for help on using the changeset viewer.