Changeset 2250 for WAeUP_SRP


Ignore:
Timestamp:
17 Sep 2007, 08:40:56 (17 years ago)
Author:
Henrik Bettermann
Message:

memory leak fixed

File:
1 edited

Legend:

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

    r2249 r2250  
    6666certificate_level = fget('certificate_level')
    6767dep_str = fac_str = certificate_level_str = ''
     68
    6869if "ClearanceOfficers" in member.getGroups():
    6970    state = "clearance_requested"
     
    108109                 In('localUsersWithRoles', ("user:%s" % member,))
    109110        res = aq_portal(query)
     111       
    110112        logger.info('CourseAdviser %s initiated student_search' % member)
    111113        certificate_level = []
     
    114116        user_info['certificate_level'] = certificate_level
    115117        certificate_level_str = " ".join(certificate_level)
     118       
    116119default = {'search_mode': 'student_id',
    117120        'review_state': state,
     
    201204                search_set.append(pl[pl.index('students') + 1])
    202205
    203 
    204206if only_review or with_review or co_view:
     207    #query = Eq('review_state',state)
     208    #review_res = aq_portal(query)
     209    #review_res = context.portal_catalog(review_state = state)
     210
    205211    query = Eq('review_state',state)
    206     review_res = aq_portal(query)
    207 
     212    review_res = aq_students(query)
    208213    logger.info('%s searches for students in review_state %s' % (member,state))
    209 
     214   
    210215if co_view:
    211216    only_review = False
     
    223228    search_set = [r.id for r in res]
    224229if review_res:
    225     review_set = [r.getId for r in review_res]
     230    review_set = [r.id for r in review_res]
     231
     232#from Products.zdb import set_trace;set_trace()
     233
    226234if only_review:
    227235    all = review_set
     
    233241else:
    234242    all = search_set
     243   
    235244items = all[:500]
    236245students = []
Note: See TracChangeset for help on using the changeset viewer.