- Timestamp:
- 26 Apr 2012, 06:39:36 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r8262 r8280 462 462 except KeyError: 463 463 self.flash(_('Session configuration object is not available.')) 464 self.redirect(self.url(self.context)) 464 465 return 465 466 timestamp = "%d" % int(time()*1000) … … 480 481 self.context[payment.p_id] = payment 481 482 self.flash(_('Payment ticket created.')) 483 self.redirect(self.url(payment)) 482 484 return 483 485 484 486 def render(self): 485 usertype = getattr(self.request.principal, 'user_type', None)486 if usertype == 'applicant':487 self.redirect(self.url(self.context, '@@edit'))488 return489 self.redirect(self.url(self.context, '@@manage'))490 487 return 491 488 -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py
r8264 r8280 437 437 # There is a correct <img> link included 438 438 self.assertTrue( 439 '<img src="passport.jpg" />' in self.browser.contents)439 '<img src="passport.jpg" height="180px" />' in self.browser.contents) 440 440 # Browsing the link shows a real image 441 441 self.browser.open(self.image_url('passport.jpg')) … … 452 452 # There is a correct <img> link included 453 453 self.assertTrue( 454 '<img src="passport.jpg" />' in self.browser.contents)454 '<img src="passport.jpg" height="180px" />' in self.browser.contents) 455 455 # Browsing the link shows a real image 456 456 self.browser.open(self.image_url('passport.jpg')) … … 473 473 # There is a correct <img> link included 474 474 self.assertTrue( 475 '<img src="passport.jpg" />' in self.browser.contents)475 '<img src="passport.jpg" height="180px" />' in self.browser.contents) 476 476 # We get a warning message 477 477 self.assertTrue( … … 502 502 # There is a correct <img> link included 503 503 self.assertTrue( 504 '<img src="passport.jpg" />' in self.browser.contents)504 '<img src="passport.jpg" height="180px" />' in self.browser.contents) 505 505 # Browsing the link shows a real image 506 506 self.browser.open(self.image_url('passport.jpg')) … … 541 541 # There is a correct <img> link included 542 542 self.assertTrue( 543 '<img src="passport.jpg" />' in self.browser.contents)543 '<img src="passport.jpg" height="180px" />' in self.browser.contents) 544 544 # Browsing the link shows a real image 545 545 self.browser.open(self.image_url('passport.jpg')) … … 620 620 self.assertMatches('...Payment ticket created...', 621 621 self.browser.contents) 622 self.assertMatches('...Activation Code...', 623 self.browser.contents) 622 624 # Payment ticket can be removed if they haven't received a 623 625 # valid callback 626 self.browser.open(self.edit_path) 624 627 ctrl = self.browser.getControl(name='val_id') 625 628 value = ctrl.options[0] … … 629 632 # We will try the callback request view 630 633 self.browser.getControl("Add online payment ticket").click() 634 self.browser.open(self.edit_path) 631 635 ctrl = self.browser.getControl(name='val_id') 632 636 value = ctrl.options[0] … … 640 644 # self.browser.contents) 641 645 # Request callback 642 self.browser.open(payment_url)643 646 self.browser.getLink("Request callback").click() 644 647 self.assertMatches('...Valid callback received...',
Note: See TracChangeset for help on using the changeset viewer.