- Timestamp:
- 17 Sep 2007, 08:40:56 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_student/search_students.py
r2249 r2250 66 66 certificate_level = fget('certificate_level') 67 67 dep_str = fac_str = certificate_level_str = '' 68 68 69 if "ClearanceOfficers" in member.getGroups(): 69 70 state = "clearance_requested" … … 108 109 In('localUsersWithRoles', ("user:%s" % member,)) 109 110 res = aq_portal(query) 111 110 112 logger.info('CourseAdviser %s initiated student_search' % member) 111 113 certificate_level = [] … … 114 116 user_info['certificate_level'] = certificate_level 115 117 certificate_level_str = " ".join(certificate_level) 118 116 119 default = {'search_mode': 'student_id', 117 120 'review_state': state, … … 201 204 search_set.append(pl[pl.index('students') + 1]) 202 205 203 204 206 if only_review or with_review or co_view: 207 #query = Eq('review_state',state) 208 #review_res = aq_portal(query) 209 #review_res = context.portal_catalog(review_state = state) 210 205 211 query = Eq('review_state',state) 206 review_res = aq_portal(query) 207 212 review_res = aq_students(query) 208 213 logger.info('%s searches for students in review_state %s' % (member,state)) 209 214 210 215 if co_view: 211 216 only_review = False … … 223 228 search_set = [r.id for r in res] 224 229 if review_res: 225 review_set = [r.getId for r in review_res] 230 review_set = [r.id for r in review_res] 231 232 #from Products.zdb import set_trace;set_trace() 233 226 234 if only_review: 227 235 all = review_set … … 233 241 else: 234 242 all = search_set 243 235 244 items = all[:500] 236 245 students = []
Note: See TracChangeset for help on using the changeset viewer.