Changeset 885 for WAeUP_SRP/trunk/skins/waeup_student/co_searchStudents.py
- Timestamp:
- 17 Nov 2006, 16:06:47 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/co_searchStudents.py
r883 r885 49 49 pr = context.portal_registration 50 50 path_info = request.get('PATH_INFO').split('/') 51 is_manager = context.isManager 51 is_manager = context.isManager() 52 52 validate = request.has_key("cpsdocument_edit_button") 53 53 default = {'search_mode': 'name', … … 69 69 #psm = "%s, %s" % (psm,ds), 70 70 students = items, 71 is_manager = is_manager,71 allowed = True, 72 72 ) 73 73 what = ds.get('search_mode') … … 92 92 #psm = "%s, %s" % (psm,ds), 93 93 students = items, 94 is_manager = is_manager,94 allowed = True, 95 95 ) 96 96 items = [] … … 165 165 info = context.getStudentInfo(item) 166 166 students.append(info) 167 return context.students_ co_view(rendered = rend,167 return context.students_manager_view(rendered = rend, 168 168 psm = "", 169 169 #psm = "%d,%d matching Students found QS = %s" %\ … … 171 171 #psm = "%d found QS = %s items: %s" % (len(items),query_step,items), 172 172 students = students, 173 is_manager = is_manager,173 allowed = True, 174 174 ) 175 return context.students_ co_view(rendered = rend,175 return context.students_manager_view(rendered = rend, 176 176 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), 177 177 students = students, 178 is_manager = is_manager,178 allowed = True, 179 179 ) 180 180
Note: See TracChangeset for help on using the changeset viewer.