Ignore:
Timestamp:
1 May 2017, 06:25:32 (8 years ago)
Author:
Henrik Bettermann
Message:

Add logging message.

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

Legend:

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

    r14637 r14681  
    437437            self.student, attr="finger1.fpm")
    438438        self.assertEqual(stored_file.read(), 'FP1faked_fpm')
     439        # storing is logged
     440        logfile = os.path.join(
     441            self.app['datacenter'].storage, 'logs', 'students.log')
     442        logcontent = open(logfile).read()
     443        self.assertTrue(
     444            'zope.mgr - grok.meta.StudentsXMLRPC '
     445            '- K1000000 - fingerprint stored' in logcontent)
    439446
    440447    def test_put_student_fingerprints_existing(self):
  • main/waeup.kofa/trunk/src/waeup/kofa/students/webservices.py

    r14637 r14681  
    294294                attr='finger%s.fpm' % num)
    295295            file_store.createFile(file_id, StringIO(val.data))
     296            student.writeLogMessage(self, 'fingerprint stored')
    296297            result = True
    297298        return result
Note: See TracChangeset for help on using the changeset viewer.