Changeset 16215 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 27 Aug 2020, 06:24:17 (4 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r16214 r16215 1796 1796 report_exists = False 1797 1797 for report in self.context.refereereports: 1798 if report. name == referee.name:1798 if report.email == referee.email: 1799 1799 report_exists = True 1800 1800 if report_exists: … … 1920 1920 # (2) Report exists but was created with another mandate. 1921 1921 for report in self.context.refereereports: 1922 if report. name == mandate.params.get('name'):1922 if report.email == mandate.params.get('email'): 1923 1923 self.flash(_('You have already created a ' 1924 1924 'report with another mandate.'), -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/interfaces.py
r16190 r16215 685 685 email = schema.ASCIILine( 686 686 title = _(u'Referee Email Address'), 687 required = True, 688 constraint=validate_email, 687 #required = True, 688 #constraint=validate_email, 689 readonly = True, 689 690 ) 690 691 -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py
r16214 r16215 1740 1740 % mandate.mandate_id) 1741 1741 self.assertTrue('Joan None' in self.browser.contents) 1742 self.assertTrue('John Referee' in self.browser.contents) 1742 1743 # Report can't be saved without required fields 1743 self.browser.getControl(name="form. email").value = ''1744 self.browser.getControl(name="form.name").value = '' 1744 1745 self.browser.getControl("Submit").click() 1745 1746 self.assertTrue('Required input is missing' in self.browser.contents) 1746 self.browser.getControl(name="form. email").value = 'bb@bb.bb'1747 self.browser.getControl(name="form.name").value = 'Johnny Referee' 1747 1748 self.browser.getControl("Submit").click() 1748 1749 # Referee will be redirected to the frontpage … … 1789 1790 self.assertEqual( 1790 1791 self.browser.url, self.view_path + '/%s' % report.r_id) 1791 self.assertTrue('John Referee' in self.browser.contents)1792 self.assertTrue('Johnny Referee' in self.browser.contents) 1792 1793 # Managers can download a pdf slip 1793 1794 self.browser.getLink("Download referee report").click() … … 2031 2032 report = createObject(u'waeup.ApplicantRefereeReport') 2032 2033 report.r_id = 'any_id' 2033 report.name = u'Linda Tree' 2034 report.name = u'Liiiinda Tree' 2035 report.email = 'linda@forest.de' 2034 2036 self.applicant[report.r_id] = report 2035 2037 self.browser.open(self.manage_path)
Note: See TracChangeset for help on using the changeset viewer.