Changeset 11676


Ignore:
Timestamp:
1 Jun 2014, 08:48:40 (10 years ago)
Author:
Henrik Bettermann
Message:

Adding student payment tickets is logged.

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

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/CHANGES.txt

    r11672 r11676  
    441.2dev (unreleased)
    55===================
     6
     7* Adding student payment tickets is logged.
    68
    79* Provide XMLRPC services for storing and retrieving fingerprint
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py

    r11580 r11676  
    17511751        self.context[payment.p_id] = payment
    17521752        self.flash(_('Payment ticket created.'))
     1753        self.context.writeLogMessage(self,'added: %s' % payment.p_id)
    17531754        self.redirect(self.url(self.context))
    17541755        return
     
    18221823        self.context[payment.p_id] = payment
    18231824        self.flash(_('Payment ticket created.'))
     1825        self.context.writeLogMessage(self,'added: %s' % payment.p_id)
    18241826        self.redirect(self.url(self.context))
    18251827        return
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py

    r11588 r11676  
    896896        self.assertEqual(self.student['payments'][value].amount_auth, 40000.0)
    897897        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)
    899905        # The pdf payment slip can't yet be opened
    900906        #self.browser.open(payment_url + '/payment_slip.pdf')
     
    924930                          self.browser.contents)
    925931        # Approval is logged in students.log ...
    926         logfile = os.path.join(
    927             self.app['datacenter'].storage, 'logs', 'students.log')
    928932        logcontent = open(logfile).read()
    929933        self.assertTrue(
     
    10971101        self.assertEqual(self.student['payments'][value].p_item, u'Balance')
    10981102        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)
    10991109
    11001110    def test_manage_accommodation(self):
Note: See TracChangeset for help on using the changeset viewer.