source: WAeUP_SRP/trunk/skins/waeup_student/getStudentReviewState.py @ 1605

Last change on this file since 1605 was 1490, checked in by joachim, 18 years ago

fix

  • Property svn:keywords set to Id
File size: 535 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=
8##title=
9##
10# $Id: getStudentReviewState.py 1490 2007-02-25 00:32:45Z joachim $
11"""
12return the review_state of the Student
13"""
14try:
15    from Products.AdvancedQuery import Eq, Between, Le,In
16    aq_portal = context.portal_catalog.evalAdvancedQuery
17except:
18    aq_portal = None
19student_id = context.getStudentId()
20query = Eq('id',student_id)
21res = aq_portal(query)
22if not res:
23    return None
24return res[0].review_state
Note: See TracBrowser for help on using the repository browser.