Changeset 13891 for main/waeup.kwarapoly
- Timestamp:
- 7 Jun 2016, 20:36:04 (9 years ago)
- Location:
- main/waeup.kwarapoly/trunk/src/waeup/kwarapoly
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interfaces.py
r13122 r13891 38 38 ) 39 39 40 application_fee = schema.Float(41 title = _(u'Application Fee (fallback)'),42 default = 0.0,43 required = True,44 )45 46 40 clearance_fee = schema.Float( 47 41 title = _(u'Clearance Fee'), -
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/tests/test_browser.py
r13653 r13891 483 483 self.browser.getControl(name="form.p_category").value = ['schoolfee'] 484 484 self.browser.getControl("Create ticket").click() 485 self.assertMatches('... Payment temporarilydisabled...',485 self.assertMatches('...This category of payments has been disabled...', 486 486 self.browser.contents) 487 487 self.app['configuration']['2005'].payment_disabled = ['sf_non_pg'] … … 489 489 self.browser.getControl(name="form.p_category").value = ['schoolfee'] 490 490 self.browser.getControl("Create ticket").click() 491 self.assertMatches('... Payment temporarilydisabled...',491 self.assertMatches('...This category of payments has been disabled...', 492 492 self.browser.contents) 493 493 # ... but PG can pay. -
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/utils.py
r13653 r13891 265 265 #category = 'schoolfee' 266 266 if self._isPaymentDisabled(p_session, category, student): 267 return _(' Payment temporarilydisabled.'), None267 return _('This category of payments has been disabled.'), None 268 268 payment = createObject(u'waeup.StudentOnlinePayment') 269 269 timestamp = ("%d" % int(time()*10000))[1:]
Note: See TracChangeset for help on using the changeset viewer.