Changeset 3904
- Timestamp:
- 3 Feb 2009, 10:01:33 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/search_students.py
r3734 r3904 75 75 user_info['faculties'] = session_data['faculties'] = faculties 76 76 user_info['departments'] = session_data['departments'] = departments 77 elif "CourseAdvisers" in member.getGroups():77 if "CourseAdvisers" in member.getGroups(): 78 78 default_state = "courses_registered" 79 79 ca_view = True … … 194 194 195 195 # build query string part 3 196 if co_view :196 if co_view and state.startswith('clear'): 197 197 if query is not None: 198 198 query = query & In('faculty',faculties) | In('department',departments) 199 199 else: 200 200 query = In('faculty',faculties) | In('department',departments) 201 elif ca_view :201 elif ca_view and state.startswith('courses'): 202 202 courses = [cl.split('/')[0] for cl in certificate_levels] 203 203 levels = [cl.split('/')[1] for cl in certificate_levels] … … 229 229 students = students, 230 230 allowed = allowed, 231 co_view = co_view,232 ca_view = ca_view231 co_view = state.startswith('clear'), 232 ca_view = state.startswith('courses') 233 233 ) 234 234 return context.search_students_form(rendered = rend,
Note: See TracChangeset for help on using the changeset viewer.