Ignore:
Timestamp:
2 Oct 2015, 15:35:29 (9 years ago)
Author:
Henrik Bettermann
Message:

Disable duplication checking, see Uniben #1011.

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

    r13254 r13280  
    11271127            # Error during image upload. Ignore other values.
    11281128            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             return
    11331129        self.applyData(self.context, **data)
    11341130        self.flash(_('Form has been saved.'))
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/interfaces.py

    r13235 r13280  
    408408        source = AppCatCertificateSource(),
    409409        required = False,
     410        description = _('Should be different from 1st choice.')
    410411        )
    411412
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py

    r13254 r13280  
    11191119        return
    11201120
    1121     def test_duplicate_choice(self):
    1122         # Make sure that that 1st and 2nd choice are different
    1123         self.login()
    1124         self.browser.open(self.edit_path)
    1125         self.fill_correct_values() # fill other fields with correct values
    1126         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         return
    1134 
    11351121    def test_final_submit(self):
    11361122        # Make sure that a correctly filled form with passport picture
Note: See TracChangeset for help on using the changeset viewer.