Ignore:
Timestamp:
21 Jun 2016, 06:07:30 (9 years ago)
Author:
Henrik Bettermann
Message:

Log purging.

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

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/configurationmanagepage.pt

    r13960 r13962  
    2222              <span i18n:translate="">active</span>,
    2323              <span tal:content="python:count[1]"></span>
    24               <span i18n:translate="">expired</span>,
     24              <span i18n:translate="">expired</span>
    2525            </td>
    2626          </tr>
  • main/waeup.kofa/trunk/src/waeup/kofa/mandates/container.py

    r13961 r13962  
    5757                del self[mandate]
    5858                num_deleted += 1
     59        grok.getSite().logger.info('%s mandates purged' % num_deleted)
    5960        return num_deleted
    6061
  • main/waeup.kofa/trunk/src/waeup/kofa/mandates/tests.py

    r13959 r13962  
    159159        self.assertEqual(len(self.app['mandates'].keys()), 1)
    160160        self.assertEqual([i for i in self.app['mandates'].keys()], [u'23456'])
     161        logfile = os.path.join(
     162            self.app['datacenter'].storage, 'logs', 'main.log')
     163        logcontent = open(logfile).read()
     164        self.assertTrue('system - 1 mandates purged' in logcontent)
    161165
    162166    def test_purge_mandates(self):
Note: See TracChangeset for help on using the changeset viewer.