Ignore:
Timestamp:
21 Nov 2007, 07:20:00 (17 years ago)
Author:
Henrik Bettermann
Message:

more customizations

Location:
WAeUP_SRP/fceokene/waeup_custom
Files:
5 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/fceokene/waeup_custom/apply_admission_manage_form.pt

    r2548 r2724  
    2020            <table tal:define="info_applicants context/getApplicantsStatistics">
    2121            <tr>
    22               <td>PCE Applications - submitted:</td>
     22              <td>PCE Applicants (status submitted):</td>
    2323              <td><span tal:replace="info_applicants/submitted_pce" /></td> 
    2424            </tr>
    2525            <tr>
    26               <td>Pre-NCE Applications - submitted:</td>
    27               <td><span tal:replace="info_applicants/admitted_prence" /></td> 
     26              <td>Pre-NCE Applicants (status submitted):</td>
     27              <td><span tal:replace="info_applicants/submitted_prence" /></td>
    2828            </tr>
     29            <tr>
     30              <td>All Applicants (status admitted):</td>
     31              <td><span tal:replace="info_applicants/admitted" /></td> 
     32            </tr>
     33            <tr>
     34              <td>All Applicants (status student record created):</td>
     35              <td><span tal:replace="info_applicants/created" /></td>
     36            </tr>           
     37            <tr>
     38              <td>All Applicants (status not admitted):</td>
     39              <td><span tal:replace="info_applicants/not_admitted" /></td> 
     40            </tr>   
    2941            </table>           
    3042           
     
    5567                   
    5668                   
    57                    
    58                    
    59                    
    6069            <input type="submit" class="standalone"
    6170                   name="edit"
    6271                   value="Save"
    6372                   />                   
    64                    
    65                    
    66                    
    67                    
    6873                   
    6974            <br /><br />
  • WAeUP_SRP/fceokene/waeup_custom/getApplicantsStatistics.py

    r2548 r2724  
    2222
    2323info = {}
    24 
    2524res_submitted_pce = context.applicants_catalog(status = 'submitted', screening_type = 'pce')
    26 res_admitted_prence = context.applicants_catalog(status = 'submitted', screening_type = 'prence')
     25res_not_admitted = context.applicants_catalog(status = 'not admitted')
     26res_submitted_prence = context.applicants_catalog(status = 'submitted', screening_type = 'prence')
     27res_admitted = context.applicants_catalog(status = 'admitted')
     28res_created = context.applicants_catalog(status = 'created')
    2729
    2830info['submitted_pce'] = len(res_submitted_pce)
    29 info['admitted_prence'] = len(res_admitted_prence)
     31info['admitted'] = len(res_admitted)
     32info['not_admitted'] = len(res_not_admitted)
     33info['submitted_prence'] = len(res_submitted_prence)
     34info['created'] = len(res_created)
    3035
    3136return info
     
    3338
    3439
    35 
  • WAeUP_SRP/fceokene/waeup_custom/getSimpleStudentStatistics.py

    r2362 r2724  
    1818logger.info('%s invoked statistics' % context.portal_membership.getAuthenticatedMember())
    1919if not context.isStaff():
    20     return 'Not allowed'
     20    return
    2121
    22 #entry_sessions = ('-1','94','95','96','97','98','99','00','01','02','03','04','05','0','1','2','3','4','5')
    2322
    2423catA =      (      'school_fee_paid',
     
    3130                   )
    3231
    33 catC =      (      'returning',
     32catC =      (      'student_created',
     33                   'returning',
    3434                   'admitted',
    3535                   'clearance_pin_entered',
     
    3939                   )
    4040
     41current_session = context.getSessionId()[0]
    4142
    42 full_time =       ('ume_ft','de_ft','ug_ft','pg_ft')
    43 part_time =       (         'de_pt','ug_pt','pg_pt')
    44 diploma   =       ('dp_ft','dp_pt')
     43
     44full_time =       ('ume_ft','')
     45part_time =       ()
     46diploma   =       ()
    4547
    4648
     
    6567dict['total_dp'] = len(res_dp)
    6668
    67 res_Aft = context.students_catalog(review_state = catA, mode = full_time)
     69res_Aft = context.students_catalog(review_state = catA, mode = full_time, session = current_session)
    6870dict['total_Aft'] = len(res_Aft)
    6971
    70 res_Apt = context.students_catalog(review_state = catA, mode = part_time)
     72res_Apt = context.students_catalog(review_state = catA, mode = part_time, session = current_session)
    7173dict['total_Apt'] = len(res_Apt)
    7274
    73 res_Adp = context.students_catalog(review_state = catA, mode = diploma)
     75res_Adp = context.students_catalog(review_state = catA, mode = diploma, session = current_session)
    7476dict['total_Adp'] = len(res_Adp)
    7577
    76 res_Bft = context.students_catalog(review_state = catB, mode = full_time)
     78res_Bft = context.students_catalog(review_state = catB, mode = full_time, session = current_session)
    7779dict['total_Bft'] = len(res_Bft)
    7880
    79 res_Bpt = context.students_catalog(review_state = catB, mode = part_time)
     81res_Bpt = context.students_catalog(review_state = catB, mode = part_time, session = current_session)
    8082dict['total_Bpt'] = len(res_Bpt)
    8183
    82 res_Bdp = context.students_catalog(review_state = catB, mode = diploma)
     84res_Bdp = context.students_catalog(review_state = catB, mode = diploma, session = current_session)
    8385dict['total_Bdp'] = len(res_Bpt)
    8486
    85 res_Cft = context.students_catalog(review_state = catC, mode = full_time)
     87res_Cft = context.students_catalog(review_state = catC, mode = full_time, session = current_session)
    8688dict['total_Cft'] = len(res_Cft)
    8789
    88 res_Cpt = context.students_catalog(review_state = catC, mode = part_time)
     90res_Cpt = context.students_catalog(review_state = catC, mode = part_time, session = current_session)
    8991dict['total_Cpt'] = len(res_Cpt)
    9092
    91 res_Cdp = context.students_catalog(review_state = catC, mode = diploma)
     93res_Cdp = context.students_catalog(review_state = catC, mode = diploma, session = current_session)
    9294dict['total_Cdp'] = len(res_Cdp)
    9395
     
    9597res_total = context.students_catalog()
    9698dict['total_in_catalog'] = len(res_total)
    97 dict['not_categorized'] = dict['total_in_catalog'] - dict['total_Aft'] - dict['total_Apt'] - dict['total_Adp'] - dict['total_Cft'] - dict['total_Cpt'] - dict['total_Cdp']
     99dict['not_categorized'] = dict['total_in_catalog'] - dict['total_ft'] - dict['total_pt'] - dict['total_dp']
    98100
    99101l.append(dict)
     
    114116    dict['total_dp'] = len(res_dp)
    115117
    116     res_Aft = context.students_catalog(faculty = f.getId, review_state = catA, mode = full_time)
     118    res_Aft = context.students_catalog(faculty = f.getId, review_state = catA, mode = full_time, session = current_session)
    117119    dict['total_Aft'] = len(res_Aft)
    118120
    119     res_Apt = context.students_catalog(faculty = f.getId, review_state = catA, mode = part_time)
     121    res_Apt = context.students_catalog(faculty = f.getId, review_state = catA, mode = part_time, session = current_session)
    120122    dict['total_Apt'] = len(res_Apt)
    121123
    122     res_Adp = context.students_catalog(faculty = f.getId, review_state = catA, mode = diploma)
     124    res_Adp = context.students_catalog(faculty = f.getId, review_state = catA, mode = diploma, session = current_session)
    123125    dict['total_Adp'] = len(res_Adp)
    124126
    125     res_Bft = context.students_catalog(faculty = f.getId, review_state = catB, mode = full_time)
     127    res_Bft = context.students_catalog(faculty = f.getId, review_state = catB, mode = full_time, session = current_session)
    126128    dict['total_Bft'] = len(res_Bft)
    127129
    128     res_Bpt = context.students_catalog(faculty = f.getId, review_state = catB, mode = part_time)
     130    res_Bpt = context.students_catalog(faculty = f.getId, review_state = catB, mode = part_time, session = current_session)
    129131    dict['total_Bpt'] = len(res_Bpt)
    130132
    131     res_Bdp = context.students_catalog(faculty = f.getId, review_state = catB, mode = diploma)
     133    res_Bdp = context.students_catalog(faculty = f.getId, review_state = catB, mode = diploma, session = current_session)
    132134    dict['total_Bdp'] = len(res_Bpt)
    133135
    134     res_Cft = context.students_catalog(faculty = f.getId, review_state = catC, mode = full_time)
     136    res_Cft = context.students_catalog(faculty = f.getId, review_state = catC, mode = full_time, session = current_session)
    135137    dict['total_Cft'] = len(res_Cft)
    136138
    137     res_Cpt = context.students_catalog(faculty = f.getId, review_state = catC, mode = part_time)
     139    res_Cpt = context.students_catalog(faculty = f.getId, review_state = catC, mode = part_time, session = current_session)
    138140    dict['total_Cpt'] = len(res_Cpt)
    139141
    140     res_Cdp = context.students_catalog(faculty = f.getId, review_state = catC, mode = diploma)
     142    res_Cdp = context.students_catalog(faculty = f.getId, review_state = catC, mode = diploma, session = current_session)
    141143    dict['total_Cdp'] = len(res_Cdp)
    142144
Note: See TracChangeset for help on using the changeset viewer.