Last change
on this file since 1151 was
1067,
checked in by joachim, 18 years ago
|
a lot of optimizations
|
-
Property svn:keywords set to
Id
|
File size:
443 bytes
|
Rev | Line | |
---|
[1067] | 1 | ## Script (Python) "getStudentInfo" |
---|
| 2 | ##bind container=container |
---|
| 3 | ##bind context=context |
---|
| 4 | ##bind namespace= |
---|
| 5 | ##bind script=script |
---|
| 6 | ##bind subpath=traverse_subpath |
---|
| 7 | ##parameters=student=None, with_items=None |
---|
| 8 | ##title= |
---|
| 9 | ## |
---|
| 10 | # $Id: getStudentReviewState.py 1067 2006-12-15 17:43:18Z joachim $ |
---|
| 11 | """ |
---|
| 12 | return Info about the current Student |
---|
| 13 | """ |
---|
| 14 | student_id = context.getStudentId() |
---|
| 15 | res = context.portal_catalog(id = student_id,portal_type='Student') |
---|
| 16 | if not res:# or len(res) > 1: |
---|
| 17 | return None |
---|
| 18 | return res[-1].review_state |
---|
Note: See
TracBrowser for help on using the repository browser.