Changeset 1479 for WAeUP_SRP/trunk/skins/waeup_student
- Timestamp:
- 23 Feb 2007, 15:42:59 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/search_students.py
r1446 r1479 137 137 allowed = allowed, 138 138 ) 139 st_queries = ('jamb_reg_no','matric_no','name')139 #st_queries = ('jamb_reg_no','matric_no','name') 140 140 review_res = None 141 141 query = None … … 160 160 res = context.students_catalog(matric_no=term.strip()) 161 161 search_set = [r.id for r in res] 162 elif what in st_queries: 163 if what == "jamb_reg_no": 164 pt = ('StudentApplication',) 165 st = "%s" % term.strip().lower() 166 elif what == "name": 167 pt = ('StudentPersonal') 168 st = "%s" % term.strip() 162 elif what == "jamb_reg_no": 163 st = "%s" % term.strip().lower() 164 res = context.students_catalog(jamb_reg_no=st) 165 search_set = [r.id for r in res] 166 elif what == "name": 167 pt = ('StudentPersonal') 169 168 query = In('portal_type',pt) & Eq('SearchableText',"%s*" % term.strip()) 170 169 res = evalAdvancedQuery(query) … … 173 172 pl = r.getPath().split('/') 174 173 search_set.append(pl[pl.index('students') + 1]) 174 175 175 176 if only_review or with_review or co_view: 176 177 if with_timer:
Note: See TracChangeset for help on using the changeset viewer.