- Timestamp:
- 27 Oct 2005, 19:30:56 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup_product/trunk/skins/waeup_student/check_admission.py
r55 r106 35 35 elif psm == 'valid': 36 36 s_id = "s%s" % ds.get('jamb_id') 37 sf = getattr(context,s_id,None) 38 if sf is None: 37 catalog = context.portal_catalog 38 search = catalog(SearchableText = "%s*" % s_id) 39 if len(search) < 1: 39 40 psm = "Your not admitted" 40 41 return context.check_admission_form(rendered = res, 41 psm = psm ,42 psm = psm + str(search), 42 43 ds = ds, 43 44 ) 44 elif hasattr(sf,'PERSONAL'): 45 psm = "Your already admitted" 45 sf = getattr(context,s_id,None) 46 if sf and getattr(sf,'PERSONAL',None): 47 psm = "Your already admitted, pleae login" 46 48 return context.check_admission_form(rendered = res, 47 49 psm = psm, … … 52 54 return REQUEST.RESPONSE.redirect("%s/logged_in?__ac_name=%s&__ac_password=UnSeT&sc_pin=%s" 53 55 % (context.absolute_url(),s_id,sc_pin)) 54 return context.student_admitted_form(rendered = res,55 psm = psm,56 ds = ds,57 student = student,58 jamb = jamb,59 pd = pd,60 )61 62 return res,psm,ds56 ## 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 63 65
Note: See TracChangeset for help on using the changeset viewer.