Last change
on this file since 12177 was
3690,
checked in by Henrik Bettermann, 16 years ago
|
Move all customized skins into trunk. The waeup_custom skin together with the default profile is the BASE configuration which is identical to the Uniben set-up.
|
File size:
1.1 KB
|
Rev | Line | |
---|
[3690] | 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 | """ |
---|
| 12 | return Student Statistics |
---|
| 13 | """ |
---|
| 14 | |
---|
| 15 | import logging |
---|
| 16 | logger = logging.getLogger('Skins.getApplicantsStatistics') |
---|
| 17 | |
---|
| 18 | logger.info('%s invoked statistics' % context.portal_membership.getAuthenticatedMember()) |
---|
| 19 | if not context.isStaff(): |
---|
| 20 | return 'Not allowed' |
---|
| 21 | |
---|
| 22 | |
---|
| 23 | info = {} |
---|
| 24 | res_submitted_pce = context.applicants_catalog(status = 'submitted', screening_type = 'pce') |
---|
| 25 | res_not_admitted = context.applicants_catalog(status = 'not admitted') |
---|
| 26 | res_submitted_prence = context.applicants_catalog(status = 'submitted', screening_type = 'prence') |
---|
| 27 | res_admitted = context.applicants_catalog(status = 'admitted') |
---|
| 28 | res_created = context.applicants_catalog(status = 'created') |
---|
| 29 | |
---|
| 30 | info['submitted_pce'] = len(res_submitted_pce) |
---|
| 31 | info['admitted'] = len(res_admitted) |
---|
| 32 | info['not_admitted'] = len(res_not_admitted) |
---|
| 33 | info['submitted_prence'] = len(res_submitted_prence) |
---|
| 34 | info['created'] = len(res_created) |
---|
| 35 | |
---|
| 36 | return info |
---|
| 37 | |
---|
| 38 | |
---|
| 39 | |
---|
Note: See
TracBrowser for help on using the repository browser.