Changeset 2528


Ignore:
Timestamp:
4 Nov 2007, 20:15:03 (17 years ago)
Author:
Henrik Bettermann
Message:

show proper application statistics
commit after 2000 if importing application data

Location:
WAeUP_SRP/base
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/WAeUPTool.py

    r2520 r2528  
    15771577        total = 0
    15781578        iname = "import_%s" % name
     1579        if iname == 'import_application':
     1580            commit_after = 2000
     1581        else:
     1582            commit_after = 100
    15791583        stool = getToolByName(self, 'portal_schemas')
    15801584        ltool = getToolByName(self, 'portal_layouts')
     
    16661670                logger.info("%(total_imported)d of %(total)d %(em)s" % vars())
    16671671
    1668             if total and not total % 100:
     1672            if total and not total % commit_after:
    16691673                transaction.commit()
    16701674                if len(not_imported) > 0:
     
    16801684                logger.info(em)
    16811685                tr_count = 0
     1686                #if total > 100:
     1687                #    return
    16821688        if len(imported) > 0:
    16831689            open("%s/import/%s_imported%s.csv" % (i_home,filename,current),"a").write(
  • WAeUP_SRP/base/skins/waeup_student/apply_admission_manage_form.pt

    r2385 r2528  
    2020            <table tal:define="info_applicants context/getApplicantsStatistics">
    2121            <tr>
    22               <td>PUME Screening Applications:</td>
     22              <td>PUME Applications - submitted:</td>
    2323              <td><span tal:replace="info_applicants/submitted_pume" /></td> 
    2424            </tr>
    2525            <tr>
    26               <td>PUDE Screening Applications:</td>
     26              <td>PUME Applications - admitted:</td>
     27              <td><span tal:replace="info_applicants/admitted_pume" /></td> 
     28            </tr>
     29            <tr>
     30              <td>PUME Applications - not admitted:</td>
     31              <td><span tal:replace="info_applicants/not_admitted_pume" /></td> 
     32            </tr>                       
     33            <tr>
     34              <td>PUDE Applications - submitted:</td>
    2735              <td><span tal:replace="info_applicants/submitted_pde" /></td>
    2836            </tr>
  • WAeUP_SRP/base/skins/waeup_student/getApplicantsStatistics.py

    r2385 r2528  
    2626#res_submitted = context.applicants_catalog(status = 'submitted')
    2727res_submitted_pume = context.applicants_catalog(status = 'submitted', screening_type = 'pume')
     28res_admitted_pume = context.applicants_catalog(status = 'admitted', screening_type = 'pume')
     29res_not_admitted_pume = context.applicants_catalog(status = 'not admitted', screening_type = 'pume')
    2830res_submitted_pde = context.applicants_catalog(status = 'submitted', screening_type = 'pde')
    2931#info['entered'] = len(res_entered)
     
    3335
    3436info['submitted_pume'] = len(res_submitted_pume)
     37info['admitted_pume'] = len(res_admitted_pume)
     38info['not_admitted_pume'] = len(res_not_admitted_pume)
    3539info['submitted_pde'] = len(res_submitted_pde)
    3640
Note: See TracChangeset for help on using the changeset viewer.