Changeset 5563 for WAeUP_SRP/trunk


Ignore:
Timestamp:
6 Oct 2010, 21:12:50 (14 years ago)
Author:
Henrik Bettermann
Message:

Fix query string.

File:
1 edited

Legend:

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

    r5562 r5563  
    1919mtool = context.portal_membership
    2020member = mtool.getAuthenticatedMember()
    21 if str(member) not in ('admin','joachim'):
     21if str(member) not in ('admin',):
    2222    return
    2323
     
    4040    entry_session  = context.getSessionId()[0]
    4141
    42 brains = aq_applicants(In('status',('admitted'),) , Eq('entry_session',entry_session))
     42brains = aq_applicants(In('status',('admitted'),) & Eq('entry_session',entry_session))
    4343total = len(brains)
    4444logger.info("found %d students" % (total))
Note: See TracChangeset for help on using the changeset viewer.