Changeset 966 for WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py
- Timestamp:
- 29 Nov 2006, 14:26:31 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py
r913 r966 48 48 info['app'] = student.application 49 49 info['app_doc'] = student.application.getContent() 50 info['per'] = student.personal 51 info['per_doc'] = student.personal.getContent() 50 info['per'] = getattr(student,'personal',None) 51 info['sex'] = 'male' 52 if info['per'] is not None: 53 info['per_doc'] = student.personal.getContent() 54 if info['per_doc'].sex: 55 info['sex'] = 'female' 56 else: 57 if info['app_doc'].jamb_sex == "F": 58 info['sex'] = 'female' 52 59 course = getattr(student,'study_course',None) 53 #54 60 info['course'] = course 55 61 if course: 56 62 info['course_doc'] = student.study_course.getContent() 57 info['sex'] = 'male'58 if info['per_doc'].sex:59 info['sex'] = 'female'60 63 # 61 64 acco = getattr(student,'accommodation_2006',None)
Note: See TracChangeset for help on using the changeset viewer.