Changeset 3350
- Timestamp:
- 18 Mar 2008, 18:24:53 (17 years ago)
- Location:
- WAeUP_SRP/base
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/WAeUPTool.py
r3349 r3350 1017 1017 application = student_object.application 1018 1018 #self.portal_workflow.doActionFor(application,'open',dest_container=application) 1019 self.do_timing()1019 #self.do_timing() 1020 1020 da = {'Title': 'Application Data'} 1021 1021 da['jamb_reg_no'] = reg_no … … 1060 1060 personal = student_object.personal 1061 1061 #self.portal_workflow.doActionFor(personal,'open',dest_container=personal) 1062 self.do_timing()1062 #self.do_timing() 1063 1063 dp = {'Title': 'Personal Data'} 1064 1064 dp['sex'] = brain.sex … … 1088 1088 studycourse = student_object.study_course 1089 1089 #self.portal_workflow.doActionFor(studycourse,'open',dest_container=studycourse) 1090 self.do_timing()1090 #self.do_timing() 1091 1091 dsc = {} 1092 1092 dsc['study_course'] = brain.course_admitted … … 1106 1106 student_object.invokeFactory('PaymentsFolder','payments') 1107 1107 payments = getattr(student_object,'payments') 1108 self.do_timing()1108 #self.do_timing() 1109 1109 dpay = {} 1110 1110 dpay['Title'] = 'Payments' -
WAeUP_SRP/base/skins/waeup_student/admitStudents.py
r3349 r3350 44 44 admitted = 0 45 45 cocount = 0 46 old_commit_count = -146 old_commit_count = 0 47 47 commit_after = 40 48 48 d = {'status': 'created'} … … 57 57 logger.info("Committing %s transactions, total %s" % (commit_after,count)) 58 58 cocount += 1 59 if cocount > 2:59 if with_timing and cocount > 2: 60 60 break 61 61 brain = aq_applicants(Eq('reg_no',reg_no))[0] … … 72 72 if with_timing: 73 73 data = context.waeup_tool.get_timing_data() 74 logger.info("timing %(i_time)6.2f/%(a_time)6.2f" % data['total']) 74 for k,d in data.items(): 75 s = "timing line %s" % k 76 s += " %(i_time)6.2f/%(a_time)6.2f" % d 77 logger.info(s) 75 78 admitted += 1 76 79 else:
Note: See TracChangeset for help on using the changeset viewer.