source: WAeUP_SRP/branches/srpp_on_branch/skins/waeup_student/getFormattedStudentEntry.py @ 4123

Last change on this file since 4123 was 1269, checked in by joachim, 18 years ago

new acco_hall_view with csv-download

  • Property svn:keywords set to Id
File size: 502 bytes
Line 
1## Script (Python) "getFormattedStudentEntry"
2##bind container=container
3##bind context=context
4##bind namespace=
5##bind script=script
6##bind subpath=traverse_subpath
7##parameters=brain
8##title=
9##
10# $Id: getFormattedStudentEntry.py 1269 2007-01-11 17:06:34Z joachim $
11"""
12return a formatted StudentCatalog Entry
13"""
14#from Products.zdb import set_trace;set_trace()
15fields = context.students_catalog.schema()
16d = {}
17for f in fields:
18    d[f] = getattr(brain,f,'--')
19    if f == "sex":
20        d[f] = 'M'
21        if d[f]:
22            d[f] = 'F'
23return d           
Note: See TracBrowser for help on using the repository browser.