Changeset 1417 for WAeUP_SRP/trunk/skins/waeup_student
- Timestamp:
- 15 Feb 2007, 10:56:43 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/add_student.py
r1416 r1417 49 49 matric_no = ds.get('matric_no') 50 50 res = context.students_catalog(matric_no = matric_no) 51 psm = "Student with matric_no %s exists with Id: %s" % (matric_no,res[0].id)52 51 if res: 52 psm = "Student with matric_no %s exists with Id: %s" % (matric_no,res[0].id) 53 53 return context.add_student_form(rendered = rendered, 54 54 psm = psm, -
WAeUP_SRP/trunk/skins/waeup_student/getSessionResults.py
r1413 r1417 8 8 pr = context.portal_registration 9 9 10 request = context.REQUEST 10 11 returning = context.returning_import 11 12 results = context.results_import … … 45 46 46 47 res = returning(matric_no = matric_no) 47 student_from_returning = res[0] 48 if res: 49 student_from_returning = res[0] 50 else: 51 return None 52 48 53 res = results(matric_no = matric_no) 49 54 results = res -
WAeUP_SRP/trunk/skins/waeup_student/getStudyCourseInfo.py
r1403 r1417 45 45 current_level = sbrain.level 46 46 levels = context.objectIds() 47 if current_level not in levels: 47 #levels.sort() 48 #if int(current_level) > int(levels[-1]): 49 if not levels: 48 50 context.invokeFactory('StudentStudyLevel',"%s" % current_level) 49 51 level = getattr(context,"%s" % current_level) -
WAeUP_SRP/trunk/skins/waeup_student/study_level_view.pt
r1380 r1417 11 11 </a> 12 12 <h3> 13 <span tal:condition=" python:is_so and s_info">13 <span tal:condition="is_so"> 14 14 <span tal:content="info/student/name" />: 15 15 </span>
Note: See TracChangeset for help on using the changeset viewer.