Changeset 2671
- Timestamp:
- 15 Nov 2007, 22:32:51 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_student/admitStudents.py
r2576 r2671 44 44 admitted = 0 45 45 cocount = 0 46 commit_after = 2 46 commit_after = 20 47 47 d = {'status': 'created'} 48 48 reg_nos = [brain.reg_no for brain in brains] … … 52 52 context.waeup_tool.doCommit() 53 53 logger.info("Committing %s transactions, total %s" % (commit_after,count)) 54 cocount += 155 if cocount > 1:56 break54 #cocount += 1 55 #if cocount > 1: 56 # break 57 57 brain = aq_applicants(Eq('reg_no',reg_no))[0] 58 58 #logger.info("start creating objects of student %s" % (brain.reg_no)) … … 68 68 msg = "finished admitting %d students" % (admitted) 69 69 logger.info(msg) 70 rwrite(msg) 70 #rwrite(msg) 71 return
Note: See TracChangeset for help on using the changeset viewer.