Changeset 2130 for WAeUP_SRP/trunk/skins
- Timestamp:
- 20 Aug 2007, 15:26:50 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_epayment/pay_by_sc.py
r2059 r2130 87 87 except: 88 88 cost = "n/a" 89 89 90 90 if not hasattr(payments,p_id): 91 91 now = DateTime.DateTime() … … 105 105 if next_session == context.getSessionId()[-2:]: 106 106 wftool.doActionFor(student,'pay_school_fee') 107 else:107 if int(session) < 6: 108 108 study_course = getattr(student,'study_course') 109 109 #wftool.doActionFor(study_course,'open') 110 110 study_course_doc = study_course.getContent() 111 next_level = "%s" % (int(s_brain.level) + 100) 111 if s_brain.verdict in ('A','B') or int(session) < 5: 112 next_level = "%s" % (int(s_brain.level) + 100) 113 else: 114 next_level = s_brain.level 112 115 study_course_doc.edit(mapping= {'current_level': next_level, 113 116 'current_session': next_session,})
Note: See TracChangeset for help on using the changeset viewer.