source: WAeUP_SRP/trunk/skins/waeup_student/get_student_info.py @ 523

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

using home_student as defaultview

File size: 762 bytes
Line 
1## Script (Python) "cpsdocument_edit"
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: student_edit.py 486 2006-09-06 10:09:39Z joachim $
11"""
12return Info about the current Student
13"""
14wf = context.portal_workflow
15mtool = context.portal_membership
16member = mtool.getAuthenticatedMember()
17
18info = {}
19student = getattr(context.students,str(member),None)
20if student is None:
21    return
22info['review_state'] = wf.getInfoFor(student,'review_state','keiner')
23#info['wf_state'] = 'keiner'
24info['app'] = student.application
25info['app_doc'] = student.application.getContent()
26info['per'] = student.personal
27info['per_doc'] = student.personal.getContent()
28return info
Note: See TracBrowser for help on using the repository browser.