Ignore:
Timestamp:
15 Nov 2007, 22:32:51 (17 years ago)
Author:
Henrik Bettermann
Message:

final settings before running the admit script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_student/admitStudents.py

    r2576 r2671  
    4444admitted = 0
    4545cocount = 0
    46 commit_after = 2
     46commit_after = 20
    4747d = {'status': 'created'}
    4848reg_nos = [brain.reg_no for brain in brains]
     
    5252        context.waeup_tool.doCommit()
    5353        logger.info("Committing %s transactions, total %s" % (commit_after,count))
    54         cocount += 1
    55         if cocount > 1:
    56             break
     54        #cocount += 1
     55        #if cocount > 1:
     56        #    break
    5757    brain = aq_applicants(Eq('reg_no',reg_no))[0]
    5858    #logger.info("start creating  objects of student %s" % (brain.reg_no))
     
    6868msg = "finished admitting %d students" % (admitted)
    6969logger.info(msg)
    70 rwrite(msg)
     70#rwrite(msg)
     71return
Note: See TracChangeset for help on using the changeset viewer.