Changeset 7026 for main/waeup.sirp


Ignore:
Timestamp:
8 Nov 2011, 06:30:04 (13 years ago)
Author:
Henrik Bettermann
Message:

Callback can't be applied twice.

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

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py

    r7025 r7026  
    997997    # from the incoming request.
    998998    def update(self):
     999        if self.context.p_state == 'paid':
     1000            self.flash('This ticket has already been paid.')
     1001            return
    9991002        student = self.context.getStudent()
    10001003        write_log_message(self,'valid callback: %s' % self.context.p_id)
  • main/waeup.sirp/trunk/src/waeup/sirp/students/tests/test_browser.py

    r7025 r7026  
    715715                          self.browser.contents)
    716716
     717        # Callback can't be applied twice
     718        self.browser.open(payment_url + '/callback')
     719        self.assertMatches('...This ticket has already been paid...',
     720                          self.browser.contents)
     721
    717722        # Managers can open the pdf payment receipt
    718723        self.browser.open(payment_url + '/payment_receipt.pdf')
Note: See TracChangeset for help on using the changeset viewer.