Changeset 2070 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
27 Jul 2007, 21:15:28 (17 years ago)
Author:
Henrik Bettermann
Message:

number of imported students which is not the sum of A and C

Location:
WAeUP_SRP/trunk/skins/waeup_student
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/getSimpleStudentStatistics.py

    r2068 r2070  
    1414
    1515import logging
    16 logger = logging.getLogger('Skins.getRetStudentStatistics')
     16logger = logging.getLogger('Skins.getSimpleStudentStatistics')
    1717
    1818logger.info('%s invoked statistics' % context.portal_membership.getAuthenticatedMember())
     
    3030                   'courses_validated',
    3131                   )
    32                    
     32
    3333catC =      ('admitted',
    3434                   'clearance_pin_entered',
     
    3636                   'clearance_requested',
    3737                   'cleared_and_validated',
    38                    )                 
     38                   )
    3939
    4040
    4141full_time =       ('ume_ft','de_ft','ug_ft','pg_ft')
    42 part_time =       (         'de_pt','ug_pt','pg_pt')       
     42part_time =       (         'de_pt','ug_pt','pg_pt')
    4343diploma   =       ('dp_ft','dp_pt')
    44            
    45                    
     44
     45
    4646faculties = context.portal_catalog(portal_type="Faculty")
    4747
     
    7979
    8080res_Cdp = context.students_catalog(review_state = catC, mode = diploma)
    81 dict['total_Cdp'] = len(res_Cdp)   
     81dict['total_Cdp'] = len(res_Cdp)
    8282
    83    
     83
     84res_total = context.students_catalog()
     85dict['total_in_catalog'] = len(res_total)
     86dict['not_categorized'] = dict['total_in_catalog'] - dict['total_Aft'] - dict['total_Apt'] - dict['total_Adp'] - dict['total_Cft'] - dict['total_Cpt'] - dict['total_Cdp']
     87
    8488l.append(dict)
    8589
     
    9195    res_Aft = context.students_catalog(faculty = f.getId, review_state = catA, mode = full_time)
    9296    dict['total_Aft'] = len(res_Aft)
    93    
     97
    9498    res_Apt = context.students_catalog(faculty = f.getId, review_state = catA, mode = part_time)
    9599    dict['total_Apt'] = len(res_Apt)
     
    114118
    115119    res_Cdp = context.students_catalog(faculty = f.getId, review_state = catC, mode = diploma)
    116     dict['total_Cdp'] = len(res_Cdp)   
    117    
    118    
     120    dict['total_Cdp'] = len(res_Cdp)
     121
     122
    119123    l.append(dict)
    120124
  • WAeUP_SRP/trunk/skins/waeup_student/search_students_form.pt

    r2068 r2070  
    1818      <nobr><a href="statistics_ret_view">Returning Student Statistics</a>
    1919      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
     20      <nobr><a href="statistics_simple_view">Basic Student Statistics</a>
     21      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>     
    2022      <span tal:condition="is_so">
    2123         <nobr><a href="view_logs">View Log Files</a>
  • WAeUP_SRP/trunk/skins/waeup_student/statistics_simple_view.pt

    r2068 r2070  
    1515      <nobr><a href="statistics_new_view">New Student Statistics</a>
    1616      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
     17      <nobr><a href="statistics_ret_view">Returning Student Statistics</a>
     18      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>     
    1719      </strong>     
    1820
     
    2022      <br />     
    2123      <span tal:condition="not:isAnon">
    22 
    23  
    24      
     24      Student records imported: <span tal:content="python: faculties[0]['total_in_catalog']" />
     25      <br />  <br /> 
    2526        <table > 
    2627
     
    9495        </table>
    9596
    96  
    97        
    9897        <br />
    99         <table>
     98        <table   border=0>
    10099
    101         <tr><td>Category A: </td> <td>students who have paid their school fee</td></tr>
    102         <tr><td>Category B: </td> <td>students who registered their courses online</td></tr>
    103         <tr><td>Category C: </td> <td>students who have neither paid their school fee or registered their courses online</td></tr>
     100        <tr><td>Category A: </td> <td>students who paid their school fee</td></tr>
     101        <tr><td>Category B: </td> <td>students who registered their courses online (A contains B)</td></tr>
     102        <tr><td>Category C: </td> <td>students who who have not yet paid their school fee</td></tr>
     103        <tr><td>&nbsp;</td><td>&nbsp;</td></tr>
     104        <tr><td colspan="2"><strong>Notice:</strong> Category C is not complete.
     105                <span tal:content="python: faculties[0]['not_categorized']" /> returning full-time students have not yet logged in and are thus not categorized.
     106             </td>
     107        </tr>
    104108         
    105109        </table>
     110       
     111       
     112       
    106113      </span>
    107114      </span>
Note: See TracChangeset for help on using the changeset viewer.