Ignore:
Timestamp:
8 Jun 2007, 16:13:05 (17 years ago)
Author:
joachim
Message:

get student review_state from students_catalog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/getStudentReviewState.py

    r1845 r1870  
    1212return the review_state of the Student
    1313"""
    14 from Products.AdvancedQuery import Eq, Between, Le,In
    1514try:
    16     aq_portal = context.portal_catalog.evalAdvancedQuery
     15    from Products.zdb import set_trace
    1716except:
    18     aq_portal = context.portal_catalog_real.evalAdvancedQuery
     17    def set_trace():
     18        pass
     19# from Products.AdvancedQuery import Eq, Between, Le,In
     20# try:
     21#     aq_portal = context.portal_catalog.evalAdvancedQuery
     22# except:
     23#     aq_portal = context.portal_catalog_real.evalAdvancedQuery
    1924if student_id is None:
    2025    student_id = context.getStudentId()
    21 query = Eq('id',student_id)
    22 res = aq_portal(query)
     26#query = Eq('id',student_id)
     27#res = aq_portal(query)
     28res = context.students_catalog(id = student_id)
    2329if not res:
    2430    return None
Note: See TracChangeset for help on using the changeset viewer.