Changeset 3366 for WAeUP_SRP/base/skins


Ignore:
Timestamp:
21 Mar 2008, 08:21:23 (17 years ago)
Author:
Henrik Bettermann
Message:

resolve #511

File:
1 edited

Legend:

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

    r2576 r3366  
    77from urllib import urlencode
    88current = DateTime.DateTime()
     9import logging
     10logger = logging.getLogger('Skins.check_admission')
    911pr = context.portal_registration
    1012type_name = 'StudentApplication'
     
    6567                                 ds = ds,
    6668                                 )
    67 ##
    68 ##    email = ds.get('app_email')
    69     student = getattr(context.campus.students, s_id)
    70     review_state = wf.getInfoFor(student,'review_state',None)
     69    #student = getattr(context.campus.students, s_id)
     70    #review_state = wf.getInfoFor(student,'review_state',None)
    7171    #if review_state == "admission_rejected":
    7272    #    url = "%s/campus/students/%s/pume/admission_rejected_view" % (context.portal_url(),s_id)
    7373    #    return redirect(url)
     74   
    7475    pw = str(ds.get('app_ac_pin_n'))
     76    logger.info('%s successfully checked admission and logged in with password %s' % (s_id,pw))
    7577    args = {}
    7678    args['__ac_name'] = s_id
Note: See TracChangeset for help on using the changeset viewer.