Changeset 11676
- Timestamp:
- 1 Jun 2014, 08:48:40 (10 years ago)
- Location:
- main/waeup.kofa/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/CHANGES.txt
r11672 r11676 4 4 1.2dev (unreleased) 5 5 =================== 6 7 * Adding student payment tickets is logged. 6 8 7 9 * Provide XMLRPC services for storing and retrieving fingerprint -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r11580 r11676 1751 1751 self.context[payment.p_id] = payment 1752 1752 self.flash(_('Payment ticket created.')) 1753 self.context.writeLogMessage(self,'added: %s' % payment.p_id) 1753 1754 self.redirect(self.url(self.context)) 1754 1755 return … … 1822 1823 self.context[payment.p_id] = payment 1823 1824 self.flash(_('Payment ticket created.')) 1825 self.context.writeLogMessage(self,'added: %s' % payment.p_id) 1824 1826 self.redirect(self.url(self.context)) 1825 1827 return -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r11588 r11676 896 896 self.assertEqual(self.student['payments'][value].amount_auth, 40000.0) 897 897 payment_url = self.browser.url 898 898 logfile = os.path.join( 899 self.app['datacenter'].storage, 'logs', 'students.log') 900 logcontent = open(logfile).read() 901 self.assertTrue( 902 ' zope.mgr - students.browser.OnlinePaymentAddFormPage - ' 903 'K1000000 - added: %s' % value 904 in logcontent) 899 905 # The pdf payment slip can't yet be opened 900 906 #self.browser.open(payment_url + '/payment_slip.pdf') … … 924 930 self.browser.contents) 925 931 # Approval is logged in students.log ... 926 logfile = os.path.join(927 self.app['datacenter'].storage, 'logs', 'students.log')928 932 logcontent = open(logfile).read() 929 933 self.assertTrue( … … 1097 1101 self.assertEqual(self.student['payments'][value].p_item, u'Balance') 1098 1102 self.assertEqual(self.student['payments'][value].p_category, 'schoolfee') 1103 # Adding payment tickets is logged. 1104 logfile = os.path.join( 1105 self.app['datacenter'].storage, 'logs', 'students.log') 1106 logcontent = open(logfile).read() 1107 self.assertTrue('zope.mgr - students.browser.BalancePaymentAddFormPage ' 1108 '- K1000000 - added: %s' % value in logcontent) 1099 1109 1100 1110 def test_manage_accommodation(self):
Note: See TracChangeset for help on using the changeset viewer.