Changeset 7997 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 28 Mar 2012, 16:49:18 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r7996 r7997 505 505 """ 506 506 grok.context(IApplicantOnlinePayment) 507 grok.name(' callback')507 grok.name('simulate_callback') 508 508 grok.require('waeup.payApplicant') 509 509 510 510 # This update method simulates a valid callback und must be 511 # specified in the customization package. The parameters must be taken 512 # from the incoming request. 511 # neutralized in the customization package. 513 512 def update(self): 514 513 self.wf_info = IWorkflowInfo(self.context.__parent__) -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py
r7984 r7997 644 644 self.browser.contents) 645 645 # Callback can't be applied twice 646 self.browser.open(payment_url + '/ callback')646 self.browser.open(payment_url + '/simulate_callback') 647 647 self.assertMatches( 648 648 "...Transition 'pay' requires 'started' as source state...", -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/viewlets.py
r7819 r7997 182 182 icon = 'actionicon_call.png' 183 183 text = _('Request callback') 184 target = ' callback'184 target = 'simulate_callback' 185 185 186 # This button must be neutralized 187 # in the customization package. 186 188 @property 187 189 def target_url(self): -
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.