Changeset 1700 for WAeUP_SRP/trunk/skins/waeup_student
- Timestamp:
- 23 Apr 2007, 21:16:34 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/getStudentReviewState.py
r1490 r1700 5 5 ##bind script=script 6 6 ##bind subpath=traverse_subpath 7 ##parameters= 7 ##parameters=student_id=None 8 8 ##title= 9 9 ## … … 17 17 except: 18 18 aq_portal = None 19 student_id = context.getStudentId() 19 if student_id is None: 20 student_id = context.getStudentId() 20 21 query = Eq('id',student_id) 21 22 res = aq_portal(query) -
WAeUP_SRP/trunk/skins/waeup_student/list_students.py
r1668 r1700 49 49 newquery = Eq('portal_type','StudentApplication') & MatchRegexp('SearchableText',r'^6*') 50 50 #newquery = MatchRegexp('SearchableText','^5*') 51 new_students = aq_portal(newquery) 52 new_sids = [] 53 for ns in new_students: 54 new_sids.append(ns.getPath().split('/')[-2]) 51 #new_students = aq_portal(newquery) 52 #set_trace() 53 #new_sids = [] 54 #for ns in new_students: 55 # new_sids.append(ns.getPath().split('/')[-2]) 56 #set_trace() 55 57 for student in cleared: 56 if student.getId not in new_sids:57 continue58 ## if student.getId not in new_sids: 59 ## continue 58 60 erg = scat(id=student.getId) 59 61 if not erg: 62 continue 63 if not erg[0].jamb_reg_no.startswith('6'): 60 64 continue 61 65 d = context.getFormattedStudentEntry(erg[0])
Note: See TracChangeset for help on using the changeset viewer.