Changeset 3366 for WAeUP_SRP/base/skins
- Timestamp:
- 21 Mar 2008, 08:21:23 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_student/check_admission.py
r2576 r3366 7 7 from urllib import urlencode 8 8 current = DateTime.DateTime() 9 import logging 10 logger = logging.getLogger('Skins.check_admission') 9 11 pr = context.portal_registration 10 12 type_name = 'StudentApplication' … … 65 67 ds = ds, 66 68 ) 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) 71 71 #if review_state == "admission_rejected": 72 72 # url = "%s/campus/students/%s/pume/admission_rejected_view" % (context.portal_url(),s_id) 73 73 # return redirect(url) 74 74 75 pw = str(ds.get('app_ac_pin_n')) 76 logger.info('%s successfully checked admission and logged in with password %s' % (s_id,pw)) 75 77 args = {} 76 78 args['__ac_name'] = s_id
Note: See TracChangeset for help on using the changeset viewer.