Changeset 16073 for main/waeup.kofa/trunk/src/waeup/kofa
- Timestamp:
- 26 Apr 2020, 06:55:05 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r16072 r16073 1124 1124 course1 = form.get('custom.course1', None) 1125 1125 course2 = form.get('custom.course2', None) 1126 cat = queryUtility(ICatalog, name='certificates_catalog') 1126 1127 if course1: 1127 cat = queryUtility(ICatalog, name='certificates_catalog')1128 1128 results = list( 1129 1129 cat.searchResults(code=(course1, course1))) … … 1131 1131 changed_fields.append('course1') 1132 1132 if course2: 1133 cat = queryUtility(ICatalog, name='certificates_catalog')1134 1133 results = list( 1135 1134 cat.searchResults(code=(course2, course2))) 1136 1135 self.context.course2 = results[0] 1137 changed_fields.append('course 1')1136 changed_fields.append('course2') 1138 1137 if password: 1139 1138 # Now we know that the form has no errors and can set password ...
Note: See TracChangeset for help on using the changeset viewer.