Changeset 648 for WAeUP_SRP/trunk/skins/waeup_student
- Timestamp:
- 10 Oct 2006, 23:42:08 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py
r646 r648 24 24 member_id = str(member) 25 25 if student is None: 26 if context.isManager :26 if context.isManager(): 27 27 if context.portal_type == 'Student': 28 28 student_id = context.getId() … … 33 33 else: 34 34 student_id = student.getId() 35 res = context.portal_catalog( portal_type='Student',id=student_id)36 if not res :35 res = context.portal_catalog(id = student_id,portal_type='Student') 36 if not res or len(res) > 1: 37 37 return None 38 brain = res[ 0]38 brain = res[-1] 39 39 student = brain.getObject() 40 40 student_path = brain.getPath() 41 ##if student is None:42 ## students = getattr(context,'students',None)43 ## if students is None:44 ## students = getattr(context.campus,'students',None)45 ## student = getattr(students,member_id,None)46 ## if student is None:47 ## return None48 41 info['review_state'] = wf.getInfoFor(student,'review_state','keiner') 49 #info['wf_state'] = 'keiner'50 42 info['student'] = student 51 43 info['id'] = student.getId()
Note: See TracChangeset for help on using the changeset viewer.