Last change
on this file since 5900 was
2986,
checked in by Henrik Bettermann, 17 years ago
|
draft to fix 'cross river' and 'akwa ibom'
|
File size:
857 bytes
|
Line | |
---|
1 | ## Script (Python) "ti_441_resolve_part3" |
---|
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: fix_lgas.py 2979 2008-01-05 15:01:33Z henrik $ |
---|
11 | """ |
---|
12 | """ |
---|
13 | |
---|
14 | mtool = context.portal_membership |
---|
15 | member = mtool.getAuthenticatedMember() |
---|
16 | if str(member) not in ('admin','joachim'): |
---|
17 | return |
---|
18 | |
---|
19 | import logging |
---|
20 | import DateTime |
---|
21 | logger = logging.getLogger('Skins.ti_441_resolve_part3') |
---|
22 | from Products.AdvancedQuery import Eq, Between, Le,In |
---|
23 | aq_students = context.students_catalog.evalAdvancedQuery |
---|
24 | students_folder = context.portal_url.getPortalObject().campus.students |
---|
25 | |
---|
26 | student_records = context.students_catalog() |
---|
27 | for student_record in student_records: |
---|
28 | if ' ' in str(student_record.lga): |
---|
29 | logger.info('%s: %s' % (student_record.id,student_record.lga)) |
---|
30 | return |
---|
31 | |
---|
Note: See
TracBrowser for help on using the repository browser.