- Timestamp:
- 10 Nov 2005, 21:40:01 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup_product/trunk/skins/waeup_student/check_admission.py
r155 r164 17 17 18 18 res,psm,ds = lt.renderLayout(layout_id= 'admission', 19 schema_id= ' jamb',19 schema_id= 'student_admission', 20 20 context=context, 21 21 mapping=validate and REQUEST, … … 37 37 catalog = context.portal_catalog 38 38 search = catalog(SearchableText = "%s*" % s_id) 39 if len(search) < 1: 40 psm = "Your not admitted" 39 student = getattr(context,s_id,None) 40 if student is None: 41 #if len(search) < 1: 42 psm = "Your are not admitted" 41 43 return context.check_admission_form(rendered = res, 42 psm = psm + str(search),44 psm = psm, 43 45 ds = ds, 44 46 ) 45 sf = getattr(context,s_id,None) 46 if sf and getattr(sf,'PERSONAL',None): 47 psm = "Your already admitted, please login" 48 return context.check_admission_form(rendered = res, 49 psm = psm, 50 ds = ds, 51 ) 52 rset = REQUEST.set 53 sc_pin = ds.get('sc_pin') 54 return REQUEST.RESPONSE.redirect("%s/logged_in?__ac_name=%s&__ac_password=UnSeT&sc_pin=%s" 55 % (context.absolute_url(),s_id,sc_pin)) 56 ## return context.student_admitted_form(rendered = res, 57 ## psm = psm, 58 ## ds = ds, 59 ## student = student, 60 ## jamb = jamb, 61 ## pd = pd, 62 ## ) 63 ## 64 ##return res,psm,ds 47 student.getContent().setScratchCardData('adm_check',ds) 65 48 49 jamb = getattr(student,'JAMB') 50 res = jamb.getContent().render(layout_id = 'admission_slip', 51 layout_mode = 'view', 52 schema_id = 'jamb') 53 54 return jamb.admission_slip_form(rendered = res, dict = ds) 55
Note: See TracChangeset for help on using the changeset viewer.