Changeset 2575 for WAeUP_SRP/base/skins
- Timestamp:
- 7 Nov 2007, 22:56:44 (17 years ago)
- Location:
- WAeUP_SRP/base/skins/waeup_student
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_student/admitStudents.py
r2540 r2575 22 22 return 23 23 24 entry_session = '07' 24 25 25 26 import logging … … 36 37 response.write("%s<br>\n\r" % s) 37 38 38 brains = aq_applicants(In('status',('admitted'),)) 39 brains = aq_applicants(In('status',('admitted'),)) 39 40 total = len(brains) 40 41 logger.info("found %d students" % (total)) … … 51 52 logger.info("Committing %s transactions, total %s" % (commit_after,count)) 52 53 cocount += 1 53 if cocount > 3:54 if cocount > 1: 54 55 break 55 56 brain = aq_applicants(Eq('reg_no',reg_no))[0] 56 57 #logger.info("start creating objects of student %s" % (brain.reg_no)) 57 sid = d['student_id'] = context.waeup_tool.admitOneStudent(brain )58 sid = d['student_id'] = context.waeup_tool.admitOneStudent(brain,entry_session) 58 59 if sid is not None: 59 60 d['reg_no'] = reg_no … … 63 64 else: 64 65 logger.info("could not create objects of student %s with pin " % (reg_no,brain.pin)) 65 66 66 67 msg = "finished admitting %d students" % (admitted) 67 68 logger.info(msg) -
WAeUP_SRP/base/skins/waeup_student/application_edit_form.pt
r1783 r2575 7 7 layout_mode='edit', 8 8 schema_id = 'student_application', 9 layout_id = 'student_application _fe',9 layout_id = 'student_application', 10 10 request=request, 11 11 use_session=True,); -
WAeUP_SRP/base/skins/waeup_student/application_slip.pt
r2288 r2575 12 12 tal:content="structure python: info['app_doc'].render(proxy=info['app_doc'], 13 13 layout_mode='view_slip', 14 layout_id='student_application _fe')"14 layout_id='student_application')" 15 15 /> 16 16 </span>
Note: See TracChangeset for help on using the changeset viewer.