Changeset 7997 for main/waeup.kofa/trunk/src/waeup/kofa/students
- Timestamp:
- 28 Mar 2012, 16:49:18 (13 years ago)
- 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
r7993 r7997 1086 1086 """ 1087 1087 grok.context(IStudentOnlinePayment) 1088 grok.name(' callback')1088 grok.name('simulate_callback') 1089 1089 grok.require('waeup.payStudent') 1090 1090 1091 1091 # This update method simulates a valid callback und must be 1092 # specified in the customization package. The parameters must be taken 1093 # from the incoming request. 1092 # neutralized in the customization package. 1094 1093 def update(self): 1095 1094 if self.context.p_state == 'paid': -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r7993 r7997 1256 1256 1257 1257 # Callback can't be applied twice 1258 self.browser.open(payment_url + '/ callback')1258 self.browser.open(payment_url + '/simulate_callback') 1259 1259 self.assertMatches('...This ticket has already been paid...', 1260 1260 self.browser.contents) … … 1298 1298 value = ctrl.options[1] # The clearance payment is the second in the table 1299 1299 self.browser.getLink(value).click() 1300 self.browser.open(self.browser.url + '/ callback')1300 self.browser.open(self.browser.url + '/simulate_callback') 1301 1301 self.assertMatches('...Valid callback received...', 1302 1302 self.browser.contents) … … 1333 1333 self.browser.getLink(value).click() 1334 1334 payment_url = self.browser.url 1335 self.browser.open(payment_url + '/ callback')1335 self.browser.open(payment_url + '/simulate_callback') 1336 1336 self.assertMatches('...Valid callback received...', 1337 1337 self.browser.contents) … … 1390 1390 # Students can open the callback view which simulates a valid callback 1391 1391 self.assertEqual(len(self.app['accesscodes']['SFE-0']),0) 1392 self.browser.open(self.browser.url + '/ callback')1392 self.browser.open(self.browser.url + '/simulate_callback') 1393 1393 self.assertMatches('...Valid callback received...', 1394 1394 self.browser.contents) … … 1444 1444 value = ctrl.options[0] 1445 1445 self.browser.getLink(value).click() 1446 self.browser.open(self.browser.url + '/ callback')1446 self.browser.open(self.browser.url + '/simulate_callback') 1447 1447 # The new HOS-0 pin has been created 1448 1448 self.assertEqual(len(self.app['accesscodes']['HOS-0']),1) … … 1573 1573 value = ctrl.options[0] 1574 1574 self.browser.getLink(value).click() 1575 self.browser.open(self.browser.url + '/ callback')1575 self.browser.open(self.browser.url + '/simulate_callback') 1576 1576 # The new HOS-0 pin has been created 1577 1577 self.assertEqual(len(self.app['accesscodes']['HOS-0']),1) -
main/waeup.kofa/trunk/src/waeup/kofa/students/viewlets.py
r7993 r7997 314 314 icon = 'actionicon_call.png' 315 315 text = _('Request callback') 316 target = 'callback' 317 316 target = 'simulate_callback' 317 318 # This button must be neutralized 319 # in the customization package. 318 320 @property 319 321 def target_url(self):
Note: See TracChangeset for help on using the changeset viewer.