Last change
on this file since 16680 was
5161,
checked in by Henrik Bettermann, 15 years ago
|
remove some unused lines
|
-
Property svn:keywords set to
Id
|
File size:
511 bytes
|
Line | |
---|
1 | ## Script (Python) "getStudentReviewState" |
---|
2 | ##bind container=container |
---|
3 | ##bind context=context |
---|
4 | ##bind namespace= |
---|
5 | ##bind script=script |
---|
6 | ##bind subpath=traverse_subpath |
---|
7 | ##parameters=student_id=None |
---|
8 | ##title= |
---|
9 | ## |
---|
10 | # $Id: getStudentReviewState.py 5161 2010-04-20 14:44:54Z henrik $ |
---|
11 | """ |
---|
12 | return the review_state of the Student |
---|
13 | """ |
---|
14 | try: |
---|
15 | from Products.zdb import set_trace |
---|
16 | except: |
---|
17 | def set_trace(): |
---|
18 | pass |
---|
19 | if student_id is None: |
---|
20 | student_id = context.getStudentId() |
---|
21 | res = context.students_catalog(id = student_id) |
---|
22 | if not res: |
---|
23 | return None |
---|
24 | return res[0].review_state |
---|
Note: See
TracBrowser for help on using the repository browser.