Changeset 1845 for WAeUP_SRP/trunk/skins/waeup_student/search_students.py
- Timestamp:
- 2 Jun 2007, 11:01:49 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/search_students.py
r1582 r1845 31 31 if is_anon: 32 32 allowed = False 33 from Products.AdvancedQuery import Eq, Between, Le,In 33 34 try: 34 from Products.AdvancedQuery import Eq, Between, Le,In 35 evalAdvancedQuery = context.portal_catalog.evalAdvancedQuery 36 aq_students = context.students_catalog.evalAdvancedQuery 35 aq_portal = context.portal_catalog.evalAdvancedQuery 37 36 except: 38 evalAdvancedQuery = None 37 aq_portal = context.portal_catalog_real.evalAdvancedQuery 38 aq_students = context.students_catalog.evalAdvancedQuery 39 39 40 40 def cmp_id(a,b): … … 81 81 query = In('portal_type',('Faculty',)) &\ 82 82 In('localUsersWithRoles', ("user:%s" % member,)) 83 res = evalAdvancedQuery(query)83 res = aq_portal(query) 84 84 logger.info('ClearanceOfficer %s initiated student_search' % member) 85 85 faculties = [] … … 90 90 query = In('portal_type',('Department',)) &\ 91 91 In('localUsersWithRoles', ("user:%s" % member,)) 92 res = evalAdvancedQuery(query)92 res = aq_portal(query) 93 93 departments = [] 94 94 if res: … … 107 107 query = In('portal_type',('StudyLevel',)) &\ 108 108 In('localUsersWithRoles', ("user:%s" % member,)) 109 res = evalAdvancedQuery(query)109 res = aq_portal(query) 110 110 logger.info('CourseAdviser %s initiated student_search' % member) 111 111 certificate_level = [] … … 195 195 query = In('portal_type',pt) & Eq('SearchableText',"%s*" % term.strip()) 196 196 logger.info('%s searches for student with name %s' % (member,term)) 197 res = evalAdvancedQuery(query)197 res = aq_portal(query) 198 198 if res: 199 199 for r in res: … … 207 207 logger.info('"%s","start 100"' % member) 208 208 query = Eq('review_state',state) 209 review_res = evalAdvancedQuery(query)209 review_res = aq_portal(query) 210 210 211 211 logger.info('%s searches for students in review_state %s' % (member,state))
Note: See TracChangeset for help on using the changeset viewer.