Changeset 2407 for WAeUP_SRP/base/skins/waeup_student/getStudentInfo.py
- Timestamp:
- 21 Oct 2007, 06:21:25 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_student/getStudentInfo.py
r2043 r2407 57 57 if student is None or student.portal_type != "Student": 58 58 return None 59 ##res = context.portal_catalog(id = student_id,portal_type='Student')60 ##if not res:# or len(res) > 1:61 ## return None62 ##brain = res[-1]63 ##student = brain.getObject()64 59 65 60 info['review_state'] = context.getStudentReviewState() … … 70 65 info['app'] = student.application 71 66 info['app_doc'] = student.application.getContent() 72 #info['per'] = getattr(student,'personal',None) 73 #info['sex'] = 'male' 74 #if info['per'] is not None: 75 # info['per_doc'] = student.personal.getContent() 76 # if info['per_doc'].sex: 77 # info['sex'] = 'female' 78 #else: 79 # if info['app_doc'].jamb_sex == "F": 80 # info['sex'] = 'female' 67 81 68 course = getattr(student,'study_course',None) 82 69 if course: … … 95 82 else: 96 83 info['course'] = None 97 #98 99 #clear = getattr(student,'clearance',None)100 #info['clear'] = clear101 #if clear is not None:102 # info['clear_doc'] = clear.getContent()103 # info['clear_review_state'] = wf.getInfoFor(clear,'review_state',None)104 #105 #pume = getattr(student,'pume',None)106 #info['pume'] = pume107 #if pume is not None:108 # info['pume_doc'] = pume.getContent()109 # info['pume_review_state'] = wf.getInfoFor(pume,'review_state',None)110 #else:111 # info['pume'] = None112 84 113 85 if not with_items:
Note: See TracChangeset for help on using the changeset viewer.