Changeset 2685 for WAeUP_SRP


Ignore:
Timestamp:
17 Nov 2007, 07:36:29 (17 years ago)
Author:
Henrik Bettermann
Message:

modify applicants statistics

Location:
WAeUP_SRP/base/skins/waeup_student
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_student/apply_admission_manage_form.pt

    r2528 r2685  
    2020            <table tal:define="info_applicants context/getApplicantsStatistics">
    2121            <tr>
    22               <td>PUME Applications - submitted:</td>
     22              <td>PUME Applicants (status submitted):</td>
    2323              <td><span tal:replace="info_applicants/submitted_pume" /></td> 
    2424            </tr>
    2525            <tr>
    26               <td>PUME Applications - admitted:</td>
    27               <td><span tal:replace="info_applicants/admitted_pume" /></td> 
     26              <td>PUDE Applicants (status submitted):</td>
     27              <td><span tal:replace="info_applicants/submitted_pde" /></td>
    2828            </tr>
    2929            <tr>
    30               <td>PUME Applications - not admitted:</td>
    31               <td><span tal:replace="info_applicants/not_admitted_pume" /></td> 
     30              <td>Admitted Applicants (status admitted):</td>
     31              <td><span tal:replace="info_applicants/admitted" /></td> 
     32            </tr>
     33            <tr>
     34              <td>Non-admitted Applicants (status not admitted):</td>
     35              <td><span tal:replace="info_applicants/not_admitted" /></td> 
    3236            </tr>                       
     37
    3338            <tr>
    34               <td>PUDE Applications - submitted:</td>
    35               <td><span tal:replace="info_applicants/submitted_pde" /></td>
    36             </tr>
     39              <td>Student Records Created (status created):</td>
     40              <td><span tal:replace="info_applicants/created" /></td>
     41            </tr>           
    3742            </table>           
    3843           
  • WAeUP_SRP/base/skins/waeup_student/getApplicantsStatistics.py

    r2528 r2685  
    2222
    2323info = {}
    24 #res_entered = context.applicants_catalog(status = 'entered')
    25 #res_edited = context.applicants_catalog(status = 'edited')
    26 #res_submitted = context.applicants_catalog(status = 'submitted')
    2724res_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')
     25res_not_admitted = context.applicants_catalog(status = 'not admitted')
    3026res_submitted_pde = context.applicants_catalog(status = 'submitted', screening_type = 'pde')
    31 #info['entered'] = len(res_entered)
    32 #info['edited'] = len(res_edited)
    33 #info['submitted'] = len(res_submitted)
    34 #info['pin_entered'] = info['entered'] + info['submitted'] + info['edited']
     27res_admitted = context.applicants_catalog(status = 'admitted')
     28res_created = context.applicants_catalog(status = 'created')
    3529
    3630info['submitted_pume'] = len(res_submitted_pume)
    37 info['admitted_pume'] = len(res_admitted_pume)
    38 info['not_admitted_pume'] = len(res_not_admitted_pume)
     31info['admitted'] = len(res_admitted)
     32info['not_admitted'] = len(res_not_admitted_pume)
    3933info['submitted_pde'] = len(res_submitted_pde)
     34info['created'] = len(res_created)
    4035
    4136return info
Note: See TracChangeset for help on using the changeset viewer.