Ignore:
Timestamp:
30 Jun 2012, 06:33:38 (12 years ago)
Author:
Henrik Bettermann
Message:

Add log 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/browser.py

    r8854 r8856  
    20042004        self._redirect(email=email_sent, password=password,
    20052005            student_id=student.student_id)
     2006        ob_class = self.__implemented__.__name__.replace('waeup.kofa.','')
     2007        self.context.logger.info(
     2008            '%s - %s (%s) - %s' % (ob_class, number, student.student_id, email_sent))
    20062009        return
    20072010
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py

    r8854 r8856  
    19421942            email=('new@yy.zz', 'new@yy.zz')))
    19431943        self.assertEqual(self.student,results[0])
     1944        logfile = os.path.join(
     1945            self.app['datacenter'].storage, 'logs', 'main.log')
     1946        logcontent = open(logfile).read()
     1947        self.assertTrue('zope.anybody - students.browser.StudentRequestPasswordPage - '
     1948                        '234 (K1000000) - new@yy.zz' in logcontent)
    19441949        return
Note: See TracChangeset for help on using the changeset viewer.