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

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.