Last change
on this file since 17929 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 | """ |
---|
12 | return a formatted StudentCatalog Entry |
---|
13 | """ |
---|
14 | #from Products.zdb import set_trace;set_trace() |
---|
15 | fields = context.students_catalog.schema() |
---|
16 | d = {} |
---|
17 | for 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' |
---|
23 | return d |
---|
Note: See
TracBrowser for help on using the repository browser.