Changeset 5160 for WAeUP_SRP/trunk
- Timestamp:
- 20 Apr 2010, 11:23:17 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py
r2920 r5160 68 68 69 69 course = getattr(student,'study_course',None) 70 70 71 if course: 71 72 cert_id = course.getContent().study_course 72 res = context. portal_catalog(portal_type = "Certificate", id =cert_id)73 res = context.certificates_catalog(code=cert_id) 73 74 ci = {} 74 75 if len(res) > 0: 75 76 info['course'] = course 76 77 brain = res[0] 77 ci['study_course'] = brain.getId 78 ci['title'] = brain.Title 79 pl = brain.getPath().split('/') 80 ci['faculty'] = pl[-4] 81 ci['department'] = pl[-3] 78 ci['study_course'] = brain.code 79 ci['title'] = brain.title 80 ci['faculty'] = brain.faculty 81 ci['department'] = brain.department 82 82 info['course_doc'] = ci 83 83 else:
Note: See TracChangeset for help on using the changeset viewer.