Changeset 2451 for WAeUP_SRP/base
- Timestamp:
- 27 Oct 2007, 14:26:41 (17 years ago)
- Location:
- WAeUP_SRP/base/skins
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_epayment/pay_by_sc.py
r2153 r2451 34 34 student = getattr(students,student_id) 35 35 s_brain = context.students_catalog(id=student_id)[0] 36 session = s_brain.session 37 next_session, next_session_str = context.getNextSessionId(session) 38 validate = request.has_key("cpsdocument_create_button") 36 next_info = context.getNextInfo(s_brain) 37 next_session_id = next_info['next_session_id'] 38 next_session_str = next_info['next_session_str'] 39 next_level_id = next_info['next_level_id'] 40 next_transition = next_info['next_transition'] 41 study_course = getattr(student,'study_course') 42 study_course.getContent().edit(mapping= {'current_level': next_level_id, 43 'current_session': next_session_id,}) 44 if next_transition: 45 wftool.doActionFor(student,next_transition) 46 47 # session = s_brain.session 48 # next_session, next_session_str = context.getNextSessionId(session) 49 # validate = request.has_key("cpsdocument_create_button") 39 50 res,psm,ds = lt.renderLayout(layout_id= 'student_schoolfee', 40 51 schema_id= 'payment', -
WAeUP_SRP/base/skins/waeup_student/add_course_result.py
r2448 r2451 71 71 d['student_id'] = student_id = context.getStudentId() 72 72 d['level_id'] = level_id = context.getId() 73 d['session_id'] = context.session 73 session_id = context.getLevelSession(context.getContent(),student_id,level_id) 74 d['session_id'] = session_id 74 75 d['key'] = "%s|%s|%s" % (student_id,level_id,course_id) 75 76 -
WAeUP_SRP/base/skins/waeup_student/getLevelSession.py
r2439 r2451 12 12 return fixed session_id from level 13 13 """ 14 import logging 15 logger = logging.getLogger('Skins.getLevelSession') 14 16 session_id = level_doc.session 15 17 changed = False -
WAeUP_SRP/base/skins/waeup_student/getStudyLevelInfo.py
r2448 r2451 32 32 course_results = context.course_results 33 33 request = context.REQUEST 34 #session = request.SESSION35 34 response = request.RESPONSE 36 35 import logging … … 110 109 111 110 return info 112
Note: See TracChangeset for help on using the changeset viewer.