Changeset 1315 for WAeUP_SRP/trunk/skins
- Timestamp:
- 17 Jan 2007, 17:38:41 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/getFormattedStudentEntry.py
r1314 r1315 18 18 d[f] = getattr(brain,f,'--') 19 19 if f == "sex": 20 d[f] = 'M'21 20 if d[f]: 22 d[f] = 'F' 21 d[f] = 'F' 22 else: 23 d[f] = 'M' 23 24 elif f == "name": 24 25 d[f] = d[f].strip() -
WAeUP_SRP/trunk/skins/waeup_student/getSessionResults.py
r1258 r1315 41 41 42 42 students_object = context.portal_url.getPortalObject().campus.students 43 student = getattr(students_object, student_id) 44 45 46 clear = getattr(student,'clearance',None) 47 if clear: 48 value = clear.getContent().matric_no 49 else: 50 return None 43 ##student = getattr(students_object, student_id) 44 ##clear = getattr(student,'clearance',None) 45 ##if clear: 46 ## value = clear.getContent().matric_no 47 ##else: 48 ## return None 51 49 52 50 res = returning(matric_no = value)
Note: See TracChangeset for help on using the changeset viewer.