Changeset 17808 for main/waeup.kofa/trunk/src/waeup/kofa/students
- Timestamp:
- 4 Jun 2024, 07:39:13 (7 months ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_webservices.py
r17787 r17808 1163 1163 'lastname': 'Tester', 1164 1164 'matric_number': '234', 1165 'depcode': 'dep1'}]) 1165 'depcode': 'dep1', 1166 'sex': 'm'}]) 1166 1167 REQUEST_XML = """\ 1167 1168 <?xml version="1.0"?> … … 1205 1206 </member> 1206 1207 <member> 1208 <name>sex</name> 1209 <value><string>m</string></value> 1210 </member> 1211 <member> 1207 1212 <name>matric_number</name> 1208 1213 <value><string>234</string></value> -
main/waeup.kofa/trunk/src/waeup/kofa/students/webservices.py
r17805 r17808 543 543 """ 544 544 hitlist = [] 545 try: 546 current_session = int(current_session) 547 current_level = int(current_level) 548 except (TypeError, ValueError): 549 hitlist.append(dict(error="Wrong parameters")) 550 return hitlist 545 if current_session: 546 try: 547 current_session = int(current_session) 548 except (TypeError, ValueError): 549 hitlist.append(dict(error="Wrong parameters")) 550 return hitlist 551 if current_level: 552 try: 553 current_level = int(current_level) 554 except (TypeError, ValueError): 555 hitlist.append(dict(error="Wrong parameters")) 556 return hitlist 551 557 cat = queryUtility(ICatalog, name='students_catalog') 552 558 results = cat.searchResults(
Note: See TracChangeset for help on using the changeset viewer.