## Script (Python) "getStudentInfo" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters=student=None, with_items=None ##title= ## # $Id: getStudentReviewState.py 1067 2006-12-15 17:43:18Z joachim $ """ return Info about the current Student """ student_id = context.getStudentId() res = context.portal_catalog(id = student_id,portal_type='Student') if not res:# or len(res) > 1: return None return res[-1].review_state