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

Filter applicants by specifying the entry_session.

File:
1 edited

Legend:

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

    r3681 r5562  
    55##bind script=script
    66##bind subpath=traverse_subpath
    7 ##parameters=
     7##parameters=entry_session=''
    88##title=
    99##
     
    2222    return
    2323
    24 entry_session = '07'   # is been overwritten in admitOneStudent
    2524pin_password = False
    2625
     
    3837    response.write("%s<br>\n\r" % s)
    3938
    40 brains = aq_applicants(In('status',('admitted'),))
     39if not entry_session:
     40    entry_session  = context.getSessionId()[0]
     41
     42brains = aq_applicants(In('status',('admitted'),) , Eq('entry_session',entry_session))
    4143total = len(brains)
    4244logger.info("found %d students" % (total))
Note: See TracChangeset for help on using the changeset viewer.