## Script (Python) "getStudentReviewState" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters=student_id=None ##title= ## # $Id: getStudentReviewState.py 5161 2010-04-20 14:44:54Z henrik $ """ return the review_state of the Student """ try: from Products.zdb import set_trace except: def set_trace(): pass if student_id is None: student_id = context.getStudentId() res = context.students_catalog(id = student_id) if not res: return None return res[0].review_state