Changeset 1084 for WAeUP_SRP/trunk/skins
- Timestamp:
- 18 Dec 2006, 21:59:40 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/search_students.py
r1073 r1084 157 157 res = aq_students(query) 158 158 search_set = [r.id for r in res] 159 ##if with_review and len(search_set) > 0: 160 ## query = In('id',search_set) & Eq('review_state',state) 161 if with_review: 159 elif only_review or with_review: 162 160 query = Eq('review_state',state) 163 161 review_res = evalAdvancedQuery(query) … … 165 163 if review_res: 166 164 for r in review_res: 167 #pl = r.getPath().split('/') 168 #review_set.append(pl[pl.index('students') + 1]) 169 review_set.append(r.getId) 165 if r.portal_type == "StudentAccommodation": 166 start = r.getPath().find('/students/') + 10 167 review_set.append(r.getPath()[start:start+7]) 168 else: 169 review_set.append(r.getId) 170 170 #set_trace() 171 171 if only_review:
Note: See TracChangeset for help on using the changeset viewer.