- Timestamp:
- 5 Jun 2007, 13:06:23 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/profiles/default/layouts/student_course_result.xml
r1786 r1856 1 1 <?xml version="1.0"?> 2 <?xml-stylesheet type="text/xsl" href="layout.xsl"?> 2 3 <object name="student_course_result" meta_type="CPS Layout"> 3 4 <property name="layout_create_method"></property> -
WAeUP_SRP/trunk/skins/waeup_epayment/pay_by_sc.py
r1771 r1856 45 45 layout_mode="create", 46 46 formaction = "pay_by_sc", 47 button = 'Pay' 47 button = 'Pay', 48 commit = False, 48 49 ) 49 50 if psm == 'invalid': -
WAeUP_SRP/trunk/skins/waeup_student/check_admission.py
r1000 r1856 30 30 formaction = "check_admission", 31 31 button = "Check", 32 commit=False, 32 33 ) 33 34 if psm == 'invalid': -
WAeUP_SRP/trunk/skins/waeup_student/create_level.py
r1845 r1856 37 37 create_level = request.get('create_level',None) 38 38 39 if context.hasObject(current_level) and create_level : 40 logger.info('%s tried to add already existing level %s' % (student.id,current_level)) 41 return 39 ##if context.hasObject(current_level) and create_level: 40 ## if getattr(context,current_level).objectIds(): 41 ## logger.info('%s tried to add already existing level %s' % (student.id,current_level)) 42 ## return 42 43 logger.info('%s started to create level %s' % (student.id,current_level)) 43 44 … … 53 54 ## return 54 55 55 if level_created == current_level:56 if context.hasObject(current_level): 56 57 level = getattr(context,"%s" % current_level) 57 58 else: … … 62 63 level.getContent().edit(mapping={'session': study_session}) 63 64 context.portal_workflow.doActionFor(level,'close_for_edit') 65 context.waeup_tool.doCommit() 64 66 results = [] 65 67 if student.matric_no: … … 75 77 76 78 for co in carry_overs: 79 cr_id = "%s_co" % co.CosCode 80 if level.hasObject(cr_id): #already created 81 continue 77 82 carry_over = False 78 83 query = Eq('code',co.CosCode) … … 105 110 context.portal_workflow.doActionFor(course_result,'open') 106 111 course_result.getContent().edit(mapping=d) 107 #context.waeup_tool.doCommit()112 context.waeup_tool.doCommit() 108 113 #level['create_course_results'](cert_id,current_level) 109 114 res = context.portal_catalog(portal_type="Certificate", id = cert_id) … … 117 122 courses = aq_portal(query) 118 123 for c in courses: 124 cr_id = "%s" % c.getId 125 if level.hasObject(cr_id): #already created 126 continue 119 127 d = context.getCourseInfo(c.getId) 120 128 cr_id = level.invokeFactory('StudentCourseResult',c.getId) … … 123 131 d['core_or_elective'] = getattr(c.getObject().getContent(),'core_or_elective') 124 132 course_result.getContent().edit(mapping=d) 125 #context.waeup_tool.doCommit()133 context.waeup_tool.doCommit() 126 134 logger.info('%s finished to create level %s' % (student.id,current_level)) 127 135 return response.redirect("%s/%s" % (context.absolute_url(),current_level))
Note: See TracChangeset for help on using the changeset viewer.