Changeset 13280 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 2 Oct 2015, 15:35:29 (9 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r13254 r13280 1127 1127 # Error during image upload. Ignore other values. 1128 1128 return 1129 if data.get('course1', 1) == data.get('course2', 2):1130 self.flash(_('1st and 2nd choice must be different.'),1131 type='warning')1132 return1133 1129 self.applyData(self.context, **data) 1134 1130 self.flash(_('Form has been saved.')) -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/interfaces.py
r13235 r13280 408 408 source = AppCatCertificateSource(), 409 409 required = False, 410 description = _('Should be different from 1st choice.') 410 411 ) 411 412 -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py
r13254 r13280 1119 1119 return 1120 1120 1121 def test_duplicate_choice(self):1122 # Make sure that that 1st and 2nd choice are different1123 self.login()1124 self.browser.open(self.edit_path)1125 self.fill_correct_values() # fill other fields with correct values1126 self.browser.getControl(name="form.course2").value = ['CERT1']1127 self.browser.getControl("Save").click()1128 self.assertTrue(1129 '1st and 2nd choice must be different' in self.browser.contents)1130 self.browser.getControl(name="form.course2").value = []1131 self.browser.getControl("Save").click()1132 self.assertTrue('Form has been saved' in self.browser.contents)1133 return1134 1135 1121 def test_final_submit(self): 1136 1122 # Make sure that a correctly filled form with passport picture -
main/waeup.kofa/trunk/src/waeup/kofa/hostels/interfaces.py
r13170 r13280 38 38 title = _(u'Hostel Allocation Start Date'), 39 39 required = False, 40 description = _('Example: ') + u'2011-12-01 18:30:00+01:00',40 description = _('Example: ') + u'2011-12-01 18:30:00+01:00', 41 41 ) 42 42 … … 44 44 title = _(u'Hostel Allocation Closing Date'), 45 45 required = False, 46 description = _('Example: ') + u'2011-12-31 23:59:59+01:00',46 description = _('Example: ') + u'2011-12-31 23:59:59+01:00', 47 47 ) 48 48
Note: See TracChangeset for help on using the changeset viewer.