Changeset 2855 for WAeUP_SRP/base/skins


Ignore:
Timestamp:
4 Dec 2007, 15:47:06 (17 years ago)
Author:
joachim
Message:

faster certificate search ?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_student/getStudyCourseInfo.py

    r2752 r2855  
    1212return Info about the Students StudyCourse
    1313"""
     14from Products.AdvancedQuery import Eq, Between, Le,In
    1415
    1516mtool = context.portal_membership
     
    4041info['student'] = sbrain
    4142cert_id = sbrain.course
    42 res = context.portal_catalog(portal_type = "Certificate", id = cert_id)
     43res = context.portal_catalog_real.evalAdvancedQuery(Eq('id', cert_id) &
     44                                                    Eq('portal_type', "Certificate"))
    4345ci = {}
    4446if res:
Note: See TracChangeset for help on using the changeset viewer.