Changeset 1171 for WAeUP_SRP/trunk/skins/waeup_student
- Timestamp:
- 1 Jan 2007, 22:54:52 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 1 added
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/createReturningStudent.py
r1170 r1171 21 21 #if str(member) not in ("admin","joachim"): 22 22 # return "not possible" 23 def createOne(student_brain): 24 sid = context.waeup_tool.generateStudentId('?') 25 students_folder.invokeFactory('Student', sid) 26 student = getattr(students_folder,sid) 27 wftool.doActionFor(student,'return') 28 student.manage_setLocalRoles(sid, ['Owner',]) 29 jamb_reg_no = student_brain.Entryregno, 30 context.students_catalog.addRecord(id = sid, 31 matric_no = matric_no, 32 jamb_reg_no = jamb_reg_no, 33 sex = student_brain.Sex == "F", 34 name = "%s %s %s" % (student_brain.Firstname, 35 student_brain.Middlename, 36 student_brain.Lastname) 37 ) 38 return sid,jamb_reg_no 23 24 25 #defined in WAeUPTool.py 26 27 # def createOne(student_brain): 28 # sid = context.waeup_tool.generateStudentId('?') 29 # students_folder.invokeFactory('Student', sid) 30 # student = getattr(students_folder,sid) 31 # wftool.doActionFor(student,'return') 32 # student.manage_setLocalRoles(sid, ['Owner',]) 33 # jamb_reg_no = student_brain.Entryregno, 34 # context.students_catalog.addRecord(id = sid, 35 # matric_no = matric_no, 36 # jamb_reg_no = jamb_reg_no, 37 # sex = student_brain.Sex == "F", 38 # name = "%s %s %s" % (student_brain.Firstname, 39 # student_brain.Middlename, 40 # student_brain.Lastname) 41 # ) 42 # return sid,jamb_reg_no 39 43 40 44 if not matric_no: -
WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py
r1167 r1171 68 68 info['url'] = student.absolute_url() 69 69 info['student_doc'] = student.getContent() 70 info['app'] = student.application71 info['app_doc'] = student.application.getContent()72 info['per'] = getattr(student,'personal',None)73 info['sex'] = 'male'74 if info['per'] is not None:75 info['per_doc'] = student.personal.getContent()76 if info['per_doc'].sex:77 info['sex'] = 'female'78 else:79 if info['app_doc'].jamb_sex == "F":80 info['sex'] = 'female'70 #info['app'] = student.application 71 #info['app_doc'] = student.application.getContent() 72 #info['per'] = getattr(student,'personal',None) 73 #info['sex'] = 'male' 74 #if info['per'] is not None: 75 # info['per_doc'] = student.personal.getContent() 76 # if info['per_doc'].sex: 77 # info['sex'] = 'female' 78 #else: 79 # if info['app_doc'].jamb_sex == "F": 80 # info['sex'] = 'female' 81 81 course = getattr(student,'study_course',None) 82 82 if course: -
WAeUP_SRP/trunk/skins/waeup_student/personal_view.pt
r1167 r1171 16 16 <br /> 17 17 <span tal:omit-tag="" 18 tal:content="structure python: info[' app_doc'].render(proxy=info['per_doc'],18 tal:content="structure python: info['per_doc'].render(proxy=info['per_doc'], 19 19 layout_mode='view', 20 20 layout_id='student_personal_fe')" -
WAeUP_SRP/trunk/skins/waeup_student/reserve_accommodation.py
r1161 r1171 26 26 session = acco_id[-4:] 27 27 mode = 'create' 28 if info['review_state'] != 'cleared_and_validated':28 if not info['review_state'] in ('cleared_and_validated',): 29 29 return context.REQUEST.RESPONSE.redirect("%s/no_booking_allowed" % info['student'].absolute_url()) 30 30 validate = REQUEST.has_key("cpsdocument_create_button") -
WAeUP_SRP/trunk/skins/waeup_student/search_students_form.pt
r1096 r1171 69 69 <span tal:replace="student/name" /> 70 70 </td> 71 <td><span tal:replace="student/jamb_reg_no" /></td> 71 <td><span tal:replace="student/matric_no" /></td> 72 <td><span tal:replace="student/jamb_reg_no" /></td> 72 73 <td tal:condition="options/co_view|nothing"> 73 74 <a href="id"
Note: See TracChangeset for help on using the changeset viewer.