- Timestamp:
- 5 Jul 2024, 21:10:23 (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/webservices.py
r17808 r17833 410 410 """Returns bursary data of a subset of students. 411 411 """ 412 hitlist = [] 412 413 if not current_session: 413 414 current_session = None 415 else: 416 try: 417 current_session = int(current_session) 418 except (TypeError, ValueError): 419 hitlist.append(dict(error="Wrong parameters")) 420 return hitlist 414 421 if not current_level: 415 422 current_level = None 423 else: 424 try: 425 current_level = int(current_level) 426 except (TypeError, ValueError): 427 hitlist.append(dict(error="Wrong parameters")) 428 return hitlist 416 429 if not depcode: 417 430 depcode = None … … 420 433 if not current_mode: 421 434 current_mode = None 422 hitlist = []423 435 cat = queryUtility(ICatalog, name='students_catalog') 424 436 results = list( … … 543 555 """ 544 556 hitlist = [] 545 if current_session: 557 if not current_session: 558 current_session = None 559 else: 546 560 try: 547 561 current_session = int(current_session) … … 549 563 hitlist.append(dict(error="Wrong parameters")) 550 564 return hitlist 551 if current_level: 565 if not current_level: 566 current_level = None 567 else: 552 568 try: 553 569 current_level = int(current_level) … … 555 571 hitlist.append(dict(error="Wrong parameters")) 556 572 return hitlist 573 if not depcode: 574 depcode = None 575 if not certcode: 576 certcode = None 577 if not current_mode: 578 current_mode = None 557 579 cat = queryUtility(ICatalog, name='students_catalog') 558 580 results = cat.searchResults(
Note: See TracChangeset for help on using the changeset viewer.