source: WAeUP_SRP/trunk/skins/waeup_utilities/ti_441_resolve_part3.py @ 16536

Last change on this file since 16536 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
14mtool = context.portal_membership
15member = mtool.getAuthenticatedMember()
16if str(member) not in ('admin','joachim'):
17    return
18
19import logging
20import DateTime
21logger = logging.getLogger('Skins.ti_441_resolve_part3')
22from Products.AdvancedQuery import Eq, Between, Le,In
23aq_students = context.students_catalog.evalAdvancedQuery
24students_folder = context.portal_url.getPortalObject().campus.students
25
26student_records = context.students_catalog()
27for student_record in student_records:
28    if ' ' in str(student_record.lga):
29        logger.info('%s: %s' % (student_record.id,student_record.lga))   
30return
31
Note: See TracBrowser for help on using the repository browser.