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 | """ |
---|
12 | return Info about the current Student |
---|
13 | """ |
---|
14 | wf = context.portal_workflow |
---|
15 | mtool = context.portal_membership |
---|
16 | member = mtool.getAuthenticatedMember() |
---|
17 | |
---|
18 | info = {} |
---|
19 | student = getattr(context.students,str(member),None) |
---|
20 | if student is None: |
---|
21 | return |
---|
22 | info['review_state'] = wf.getInfoFor(student,'review_state','keiner') |
---|
23 | #info['wf_state'] = 'keiner' |
---|
24 | info['app'] = student.application |
---|
25 | info['app_doc'] = student.application.getContent() |
---|
26 | info['per'] = student.personal |
---|
27 | info['per_doc'] = student.personal.getContent() |
---|
28 | return info |
---|
Note: See
TracBrowser for help on using the repository browser.