Changeset 9326 for main/waeup.kofa
- Timestamp:
- 10 Oct 2012, 21:14:45 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/browser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py
r9323 r9326 1535 1535 grok.require('waeup.manageDataCenter') 1536 1536 1537 def render(self, exporter=None,job_id=None):1537 def render(self, job_id=None): 1538 1538 1539 1539 manager = getUtility(IJobManager) … … 1558 1558 self.context.delete_export_entry( 1559 1559 self.context.entry_from_job_id(job_id)) 1560 ob_class = self.__implemented__.__name__.replace('waeup.kofa.','') 1561 self.context.logger.info('%s - exported: %s' % (ob_class, filename)) 1560 1562 return result 1561 1563 -
main/waeup.kofa/trunk/src/waeup/kofa/browser/tests/test_browser.py
r9290 r9326 225 225 self.assertEqual(result, None) 226 226 self.assertEqual(self.stored_in_datacenter(job_id), False) 227 #logfile = os.path.join(228 #self.app['datacenter'].storage, 'logs', 'datacenter.log')229 #logcontent = open(logfile).read()230 #self.assertTrue('zope.mgr - browser.pages.ExportCSVView - '231 # 'exported: faculties' in logcontent)227 logfile = os.path.join( 228 self.app['datacenter'].storage, 'logs', 'datacenter.log') 229 logcontent = open(logfile).read() 230 self.assertTrue('zope.mgr - browser.pages.ExportCSVView - ' 231 'exported: WAeUP.Kofa_faculties.csv' in logcontent) 232 232 return 233 233
Note: See TracChangeset for help on using the changeset viewer.