Changeset 3329 for WAeUP_SRP/base/skins/waeup_epayment
- Timestamp:
- 13 Mar 2008, 13:52:11 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_epayment/getSchoolFeePrefix.py
r3060 r3329 25 25 26 26 student_id = context.getStudentId() 27 s brain= context.students_catalog(id=student_id)[0]27 student_record = context.students_catalog(id=student_id)[0] 28 28 res = context.portal_catalog(portal_type="Certificate", 29 id = sbrain.course) 30 #set_trace() 29 id = student_record.course) 30 31 31 32 if not res: 32 33 logger.info('%s, certificate %s not found' % (student_id,course)) … … 36 37 if not prefix or prefix == 'none': 37 38 prefix = res[0].getPath().split('/')[-4] 39 if student_record.review_state == 'cleared_and_validated': 40 prefix = prefix + 'NEW' 38 41 return prefix
Note: See TracChangeset for help on using the changeset viewer.