Changeset 9516


Ignore:
Timestamp:
3 Nov 2012, 09:25:46 (12 years ago)
Author:
Henrik Bettermann
Message:

Different error strings should lead to a redirection to the PreviousPaymentAddFormPage?.

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

Legend:

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

    r9486 r9516  
    13781378        if error is not None:
    13791379            self.flash(error)
    1380             if 'previous session' in error:
     1380            if 'previous session' in error or 'Would you like' in error:
    13811381                self.redirect(self.url(self.context) + '/@@addpp')
    13821382                return
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py

    r9514 r9516  
    833833            '...This type of payment has already been made...',
    834834            self.browser.contents)
     835        # The PreviousPaymentAddFormPage opens
     836        self.assertEqual(self.browser.url, self.payments_path + '/@@addpp')
    835837
    836838        # Managers can open the pdf payment slip
  • main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py

    r9452 r9516  
    381381               ticket.p_session == p_session:
    382382                  return _('This type of payment has already been made.' +
    383                            ' Would you like to pay for a previous session?'), None
     383                           ' Would you like to pay for another session?'), None
    384384        payment = createObject(u'waeup.StudentOnlinePayment')
    385385        timestamp = ("%d" % int(time()*10000))[1:]
Note: See TracChangeset for help on using the changeset viewer.