- Timestamp:
- 7 Dec 2010, 13:58:37 (14 years ago)
- Location:
- WAeUP_SRP/trunk/skins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_futminna/getInterswitchParams.py
r5606 r5607 35 35 d['type_description'] = 'Hostel Maintenance Fee' 36 36 d['pay_item_name'] = "FUT Minna %(type_description)s" % d 37 if student_record.level in (' 200','300','400','500') and student_record.faculty in ('EET','SET','AAT','ICT','EMT'):37 if student_record.level in ('100','200','300','400','500') and student_record.faculty in ('EET','SET','AAT','ICT','EMT'): 38 38 d['amount'] = 9000 39 39 else: -
WAeUP_SRP/trunk/skins/waeup_utilities/refresh_certificate_info.py
r1253 r5607 9 9 10 10 course = request.get('certid') 11 res = context. portal_catalog(portal_type='Certificate',id= course)11 res = context.certificates_catalog(code = course) 12 12 if not res: 13 13 return "Certificate %s not found" 14 c_brain = res[0] 15 c_path = c_brain.getPath().split('/') 16 faculty = c_path[-4] 17 department = c_path[-3] 14 faculty = res[0].faculty 15 department = res[0].department 18 16 s_cat = context.students_catalog 19 17 s_res = s_cat(course = certid) … … 26 24 for student_id in [st.id for st in s_res]: 27 25 s_cat.modifyRecord(id = student_id, 28 course = course,29 26 faculty = faculty, 30 27 department = department, 31 28 ) 32 refreshed.append("Record %s refreshed " % student_id)29 refreshed.append("Record %s refreshed, faculty = %s, department = %s" % (student_id,faculty,department)) 33 30 return '\r'.join(refreshed)
Note: See TracChangeset for help on using the changeset viewer.