Changeset 9679 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 18 Nov 2012, 14:25:35 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/reports.py
r9677 r9679 49 49 self.flash('Report discarded: %s' % job_id) 50 50 ob_class = self.__implemented__.__name__.replace('waeup.kofa.','') 51 grok.getSite().logger.info('%s - discarded: %s' % (ob_class, job_id)) 51 grok.getSite().logger.info( 52 '%s - report %s discarded' % (ob_class, job_id)) 52 53 self.entries = self._generate_entries(user_id=None) 53 54 if job_id and DOWNLOAD: -
main/waeup.kofa/trunk/src/waeup/kofa/students/reports.py
r9678 r9679 189 189 mode=mode) 190 190 self.flash(_('New report is being created in background')) 191 container.start_report_job(191 job_id = container.start_report_job( 192 192 self.generator_name, user_id, kw=kw) 193 193 ob_class = self.__implemented__.__name__.replace('waeup.kofa.','') 194 194 grok.getSite().logger.info( 195 '%s - created: %s (session=%s, mode=%s)' % (196 ob_class, self.context.title, session, mode))195 '%s - report %s created: %s (session=%s, mode=%s)' % ( 196 ob_class, job_id, self.context.title, session, mode)) 197 197 self.redirect(self.parent_url) 198 198 return … … 227 227 pdf_stream = self.context.create_pdf() 228 228 ob_class = self.__implemented__.__name__.replace('waeup.kofa.','') 229 grok.getSite().logger.info('%s - downloaded: %s' % (ob_class, filename)) 229 grok.getSite().logger.info('%s - report %s downloaded: %s' % ( 230 ob_class, self.context.__name__, filename)) 230 231 return pdf_stream -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_reports.py
r9678 r9679 129 129 self.assertTrue( 130 130 'INFO - zope.mgr - students.reports.StudentsReportGeneratorPage - ' 131 'created: Students (session=2004, mode=All)' in logcontent 131 'report %s created: Students (session=2004, mode=All)' 132 % job_id in logcontent 132 133 ) 133 134 self.assertTrue( 134 135 'INFO - zope.mgr - students.reports.StudentsReportPDFView - ' 135 'downloaded: StudentsReport_2004_2005_All_' in logcontent 136 'report %s downloaded: StudentsReport_2004_2005_All_' 137 % job_id in logcontent 136 138 ) 137 139 self.assertTrue( 138 140 'INFO - zope.mgr - browser.reports.ReportsContainerPage - ' 139 ' discarded: %s' % job_id in logcontent141 'report %s discarded' % job_id in logcontent 140 142 ) 141 143 return
Note: See TracChangeset for help on using the changeset viewer.