Changeset 2528
- Timestamp:
- 4 Nov 2007, 20:15:03 (17 years ago)
- Location:
- WAeUP_SRP/base
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/WAeUPTool.py
r2520 r2528 1577 1577 total = 0 1578 1578 iname = "import_%s" % name 1579 if iname == 'import_application': 1580 commit_after = 2000 1581 else: 1582 commit_after = 100 1579 1583 stool = getToolByName(self, 'portal_schemas') 1580 1584 ltool = getToolByName(self, 'portal_layouts') … … 1666 1670 logger.info("%(total_imported)d of %(total)d %(em)s" % vars()) 1667 1671 1668 if total and not total % 100:1672 if total and not total % commit_after: 1669 1673 transaction.commit() 1670 1674 if len(not_imported) > 0: … … 1680 1684 logger.info(em) 1681 1685 tr_count = 0 1686 #if total > 100: 1687 # return 1682 1688 if len(imported) > 0: 1683 1689 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 20 20 <table tal:define="info_applicants context/getApplicantsStatistics"> 21 21 <tr> 22 <td>PUME Screening Applications:</td>22 <td>PUME Applications - submitted:</td> 23 23 <td><span tal:replace="info_applicants/submitted_pume" /></td> 24 24 </tr> 25 25 <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> 27 35 <td><span tal:replace="info_applicants/submitted_pde" /></td> 28 36 </tr> -
WAeUP_SRP/base/skins/waeup_student/getApplicantsStatistics.py
r2385 r2528 26 26 #res_submitted = context.applicants_catalog(status = 'submitted') 27 27 res_submitted_pume = context.applicants_catalog(status = 'submitted', screening_type = 'pume') 28 res_admitted_pume = context.applicants_catalog(status = 'admitted', screening_type = 'pume') 29 res_not_admitted_pume = context.applicants_catalog(status = 'not admitted', screening_type = 'pume') 28 30 res_submitted_pde = context.applicants_catalog(status = 'submitted', screening_type = 'pde') 29 31 #info['entered'] = len(res_entered) … … 33 35 34 36 info['submitted_pume'] = len(res_submitted_pume) 37 info['admitted_pume'] = len(res_admitted_pume) 38 info['not_admitted_pume'] = len(res_not_admitted_pume) 35 39 info['submitted_pde'] = len(res_submitted_pde) 36 40
Note: See TracChangeset for help on using the changeset viewer.