Changeset 881 for WAeUP_SRP/trunk/skins/waeup_student
- Timestamp:
- 16 Nov 2006, 22:42:08 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 1 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/co_searchStudents.py
r875 r881 1 ## Script (Python) "co_search "1 ## Script (Python) "co_searchStudents" 2 2 ##bind container=container 3 3 ##bind context=context … … 62 62 ob=default, 63 63 layout_mode='edit', 64 formaction="co_search "64 formaction="co_searchStudents" 65 65 ) 66 66 if psm == '': … … 160 160 if items: 161 161 for item in items: 162 info = context.getStudentInfo(item) 163 if context.isClearanceOfficer(info): 162 #if context.isClearanceOfficer(info): 163 droles = member.getRolesInContext(item) 164 if "ClearanceOfficer" in droles: 165 info = context.getStudentInfo(item) 164 166 students.append(info) 165 return context.co_search_ form(rendered = rend,167 return context.co_search_view(rendered = rend, 166 168 psm = "%d,%d matching Students found QS = %s" %\ 167 169 (len(review_set),len(search_set),query_step), … … 170 172 is_manager = is_manager, 171 173 ) 172 return context.co_search_ form(rendered = rend,174 return context.co_search_view(rendered = rend, 173 175 psm = """Step: %s found: %s Your search for "%s" in %s with state %s failed.<br\>%s""" % (query_step,len(items),st,what,state,bools), 174 176 students = students, -
WAeUP_SRP/trunk/skins/waeup_student/students_index.py
r874 r881 24 24 25 25 if "ClearanceOfficers" in member.getGroups(): 26 return redirect("%s/co_search " % students_url)26 return redirect("%s/co_searchStudents" % students_url) 27 27 if context.isManager(): 28 28 return redirect("%s/searchStudents" % students_url)
Note: See TracChangeset for help on using the changeset viewer.