Changeset 2752
- Timestamp:
- 24 Nov 2007, 06:06:14 (17 years ago)
- Location:
- WAeUP_SRP/base/skins/waeup_student
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_student/create_level.py
r2664 r2752 57 57 context.portal_workflow.doActionFor(level,'open') 58 58 level.getContent().edit(mapping={'session': current_session}) 59 context.portal_workflow.doActionFor(level,'close_for_edit')59 #context.portal_workflow.doActionFor(level,'close_for_edit') 60 60 level_id = level.getId() 61 61 session_id = context.getLevelSession(level.getContent(),student_id,level_id) … … 67 67 68 68 69 # fetch carry_over courses from results_import 69 # fetch carry_over courses from results_import 70 70 if student.session in ('6', '06') and results: 71 71 carry_overs = results … … 109 109 d['session_id'] = session_id 110 110 records.append(d) 111 # fetch carry_over courses from the course_results catalog 112 # else 111 # fetch carry_over courses from the course_results catalog 112 # else 113 113 114 # fetch session courses from the certificate 114 # fetch session courses from the certificate 115 115 res = context.portal_catalog(portal_type="Certificate", id = cert_id) 116 116 if res: -
WAeUP_SRP/base/skins/waeup_student/getLevelSession.py
r2470 r2752 27 27 session_id = session_id[2:4] 28 28 if len(session_id) != 2: 29 logger.info("invalid session %s in level %s for student %s" % 29 logger.info("invalid session %s in level %s for student %s" % 30 30 (session_id,level_id,student_id)) 31 31 else: 32 32 if changed: 33 context.portal_workflow.doActionFor(level_doc.aq_parent,'open') 33 try: 34 context.portal_workflow.doActionFor(level_doc.aq_parent,'open') 35 except: 36 pass 34 37 level_doc.edit(mapping={'session': session_id}) 35 context.portal_workflow.doActionFor(level_doc.aq_parent,'close_for_edit')36 return session_id 38 #context.portal_workflow.doActionFor(level_doc.aq_parent,'close_for_edit') 39 return session_id 37 40 38 39 41 42 -
WAeUP_SRP/base/skins/waeup_student/getStudyCourseInfo.py
r2678 r2752 84 84 review_state = wftool.getInfoFor(context,'review_state',None) 85 85 student_review_state = sbrain.review_state 86 if review_state != 'content_addable' and student_review_state == 'school_fee_paid': #and context.isStudent():87 wftool.doActionFor(context,'close_for_edit')86 #if review_state != 'content_addable' and student_review_state == 'school_fee_paid': #and context.isStudent(): 87 # wftool.doActionFor(context,'close_for_edit') 88 88 89 89 has_paid = student_review_state == 'school_fee_paid' -
WAeUP_SRP/base/skins/waeup_student/reject_courses.py
r1630 r2752 27 27 28 28 wftool = context.portal_workflow 29 wftool.doActionFor(context,'open') 30 wftool.doActionFor(context,'close_for_edit') 29 try: 30 wftool.doActionFor(context,'open') 31 except: 32 pass 33 #wftool.doActionFor(context,'close_for_edit') 31 34 students_folder = context.portal_url.getPortalObject().campus.students 32 35 student_id = context.getStudentId()
Note: See TracChangeset for help on using the changeset viewer.