Changeset 3350 for WAeUP_SRP/base/skins
- Timestamp:
- 18 Mar 2008, 18:24:53 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.