Ignore:
Timestamp:
22 Dec 2012, 09:42:58 (12 years ago)
Author:
Henrik Bettermann
Message:

Use logger of datacenter for VirtualExportJobContainers?.

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

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py

    r9820 r9823  
    27622762            'text/csv; charset=UTF-8')
    27632763        self.assertTrue(
    2764             'filename="students.csv' in
     2764            'filename="WAeUP.Kofa_students.csv' in
    27652765            self.browser.headers['content-disposition'])
    27662766        self.assertEqual(len(self.app['datacenter'].running_exports), 1)
     
    27712771        self.assertEqual(len(self.app['datacenter'].running_exports), 0)
    27722772        # Creation, downloading and discarding is logged
    2773         #logfile = os.path.join(
    2774         #    self.app['datacenter'].storage, 'logs', 'datacenter.log')
    2775         #logcontent = open(logfile).read()
     2773        logfile = os.path.join(
     2774            self.app['datacenter'].storage, 'logs', 'datacenter.log')
     2775        logcontent = open(logfile).read()
     2776        self.assertTrue(
     2777            'INFO - zope.mgr - students.browser.ExportJobContainerDownload - '
     2778            'exported: WAeUP.Kofa_students.csv'
     2779            )
  • main/waeup.kofa/trunk/src/waeup/kofa/utils/batching.py

    r9816 r9823  
    747747        del self._site_container.running_exports
    748748
     749    @property
     750    def logger(self):
     751        return self._site_container.logger
    749752
    750753@implementer(IExportContainerFinder)
Note: See TracChangeset for help on using the changeset viewer.