source: WAeUP_SRP/base/skins/waeup_student/getApplicantsStatistics.py @ 2431

Last change on this file since 2431 was 2385, checked in by Henrik Bettermann, 17 years ago

include pume/pde statistics

File size: 1.2 KB
Line 
1## Script (Python) "getApplicantsStatistics"
2##bind container=container
3##bind context=context
4##bind namespace=
5##bind script=script
6##bind subpath=traverse_subpath
7##parameters=
8##title=
9##
10# $Id: getApplicantsStatistics.py 1277 2007-01-11 21:11:37Z joachim $
11"""
12return Student Statistics
13"""
14
15import logging
16logger = logging.getLogger('Skins.getApplicantsStatistics')
17
18logger.info('%s invoked statistics' % context.portal_membership.getAuthenticatedMember())
19if not context.isStaff():
20    return 'Not allowed'
21
22
23info = {}
24#res_entered = context.applicants_catalog(status = 'entered')
25#res_edited = context.applicants_catalog(status = 'edited')
26#res_submitted = context.applicants_catalog(status = 'submitted')
27res_submitted_pume = context.applicants_catalog(status = 'submitted', screening_type = 'pume')
28res_submitted_pde = context.applicants_catalog(status = 'submitted', screening_type = 'pde')
29#info['entered'] = len(res_entered)
30#info['edited'] = len(res_edited)
31#info['submitted'] = len(res_submitted)
32#info['pin_entered'] = info['entered'] + info['submitted'] + info['edited']
33
34info['submitted_pume'] = len(res_submitted_pume)
35info['submitted_pde'] = len(res_submitted_pde)
36
37return info
38
39
40
Note: See TracBrowser for help on using the repository browser.