- Timestamp:
- 7 Jun 2025, 02:06:59 (4 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/uli-recaptcha/src/waeup/kofa/applicants/browser.py
r18021 r18083 50 50 from waeup.kofa.applicants.applicant import search 51 51 from waeup.kofa.applicants.workflow import ( 52 INITIALIZED, STARTED, PAID, SUBMITTED, 52 INITIALIZED, STARTED, PAID, SUBMITTED, 53 53 ADMITTED, NOT_ADMITTED, CREATED, PROCESSED) 54 54 from waeup.kofa.browser import ( … … 843 843 def render(self): 844 844 return 845 845 846 846 class BalancePaymentAddFormPage(KofaAddFormPage): 847 847 """ Page to add an online payment which can balance s previous session … … 1078 1078 manage_applications = True 1079 1079 pnav = 3 1080 1080 1081 1081 @property 1082 1082 def display_actions(self): … … 1212 1212 if self.upload_success is False: # False is not None! 1213 1213 # Error during image upload. Ignore other values. 1214 return 1214 return 1215 1215 changed_fields = self.applyData(self.context, **data) 1216 1216 # Turn list of lists into single list … … 1578 1578 # Handle captcha 1579 1579 self.captcha = getUtility(ICaptchaManager).getCaptcha() 1580 self.captcha_result = self.captcha.verify(self.request) 1581 self.captcha_code = self.captcha.display(self.captcha_result.error_code) 1580 self.captcha_result = self.captcha.verify( 1581 self.request, 'applicant_register') 1582 self.captcha_code = self.captcha.display( 1583 self.captcha_result.error_code, 'applicant_register') 1582 1584 return 1583 1585 … … 1707 1709 # Handle captcha 1708 1710 self.captcha = getUtility(ICaptchaManager).getCaptcha() 1709 self.captcha_result = self.captcha.verify(self.request) 1710 self.captcha_code = self.captcha.display(self.captcha_result.error_code) 1711 self.captcha_result = self.captcha.verify( 1712 self.request, 'check_appl_status') 1713 self.captcha_code = self.captcha.display( 1714 self.captcha_result.error_code, 'check_appl_status') 1711 1715 if SUBMIT: 1712 1716 if not self.captcha_result.is_valid: … … 1792 1796 # Handle captcha 1793 1797 self.captcha = getUtility(ICaptchaManager).getCaptcha() 1794 self.captcha_result = self.captcha.verify(self.request) 1795 self.captcha_code = self.captcha.display(self.captcha_result.error_code) 1798 self.captcha_result = self.captcha.verify( 1799 self.request, 'check_trans_state') 1800 self.captcha_code = self.captcha.display( 1801 self.captcha_result.error_code, 'check_trans_state') 1796 1802 if SUBMIT: 1797 1803 self.results = [] … … 2087 2093 args = {'mandate_id':mandate.mandate_id} 2088 2094 # Check if report exists. 2089 # (1) If mandate has been used to create a report, 2095 # (1) If mandate has been used to create a report, 2090 2096 # redirect to the pdf file. 2091 2097 if mandate.params.get('redirect_path2'):
Note: See TracChangeset for help on using the changeset viewer.