source: WAeUP_SRP/branches/srpp_on_branch/skins/waeup_student/getStudentReviewState.py @ 9735

Last change on this file since 9735 was 1161, checked in by Henrik Bettermann, 18 years ago

getStudentInfo replaced (not yet thoroughly tested!)

  • Property svn:keywords set to Id
File size: 450 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=None, with_items=None
8##title=
9##
10# $Id: getStudentReviewState.py 1161 2006-12-31 07:50:50Z henrik $
11"""
12return Info about the current Student
13"""
14student_id = context.getStudentId()
15res = context.portal_catalog(id = student_id,portal_type='Student')
16if not res:# or len(res) > 1:
17    return None
18return res[-1].review_state
Note: See TracBrowser for help on using the repository browser.