Changeset 173 for waeup_product/trunk/skins/waeup_student
- Timestamp:
- 15 Nov 2005, 16:28:29 (19 years ago)
- Location:
- waeup_product/trunk/skins/waeup_student
- Files:
-
- 3 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
waeup_product/trunk/skins/waeup_student/check_admission.py
r166 r173 60 60 schema_id = 'jamb') 61 61 62 return jamb.admission_slip_form(rendered = res, dict = ds)62 return context.admission_slip_form(rendered = res, dict = ds) 63 63 -
waeup_product/trunk/skins/waeup_student/clearance.py
r172 r173 26 26 ob={}, 27 27 layout_mode='create', 28 action = "clear ence",28 action = "clearance", 29 29 submit = "submit", 30 30 ) 31 31 32 32 if psm == 'invalid': 33 return context.clear ence_form(rendered = res,33 return context.clearance_form(rendered = res, 34 34 psm = "Please correct your input", 35 35 ds = ds, 36 36 ) 37 37 elif psm == '': 38 return context.clear ence_form(rendered = res,38 return context.clearance_form(rendered = res, 39 39 psm = None, 40 40 ds = ds, … … 46 46 if len(search) < 1: 47 47 psm = "Your not admitted" 48 return context.clear ence_form(rendered = res,48 return context.clearance_form(rendered = res, 49 49 psm = psm, 50 50 ds = ds, … … 53 53 if sf and getattr(sf,'PERSONAL',None): 54 54 psm = "Your already admitted, please login" 55 return context.clear ence_form(rendered = res,55 return context.clearance_form(rendered = res, 56 56 psm = psm, 57 57 ds = ds, … … 60 60 student = getattr(context,s_id) 61 61 ds.set('sc_date',current) 62 student.getContent().setScratchCardData('clear ence',ds)62 student.getContent().setScratchCardData('clearance',ds) 63 63 sc_pin = ds.get('sc_pin') 64 return REQUEST.RESPONSE.redirect("%s/logged_in?__ac_name=%s&__ac_password=UnSeT&sc_pin=%s" 64 #return REQUEST.RESPONSE.redirect("%s/logged_in?__ac_name=%s&__ac_password=UnSeT&sc_pin=%s" 65 return REQUEST.RESPONSE.redirect("%s/logged_in?__ac_name=%s&__ac_password=123456&sc_pin=%s" 65 66 % (context.absolute_url(),s_id,sc_pin)) -
waeup_product/trunk/skins/waeup_student/clearance_form.pt
r172 r173 14 14 </metal:block> 15 15 <metal:block fill-slot="main"> 16 <h1>Clear ence and Eligibility Processing </h1>16 <h1>Clearance and Eligibility Processing </h1> 17 17 <div tal:replace="structure rendered_main" /> 18 18 Instructions :<br /> -
waeup_product/trunk/skins/waeup_student/create_jamb.py
r152 r173 51 51 noCPSMember = False 52 52 try: 53 pr.addMember(s_id, 'UnSeT',roles=('Member','CPSMember','Student','Contributor')) 53 #pr.addMember(s_id, 'UnSeT',roles=('Member','CPSMember','Student','Contributor')) 54 pr.addMember(s_id, '123456',roles=('Member','CPSMember','Student','Contributor')) 54 55 except: 55 56 noCPSMember = True 56 57 if noCPSMember: 57 pr.addMember(s_id, 'UnSeT',roles=('Member','Student','Contributor')) 58 #pr.addMember(s_id, 'UnSeT',roles=('Member','Student','Contributor')) 59 pr.addMember(s_id, '123456',roles=('Member','Student','Contributor')) 58 60 student.manage_setLocalRoles(s_id, ['Owner']) 59 61 jamb.manage_setLocalRoles(s_id, ['Owner']) -
waeup_product/trunk/skins/waeup_student/eligibility.py
r164 r173 44 44 s_personal = context.PERSONAL.getContent() 45 45 s_personal.edit(mapping={'email': ds.get('email')}) 46 pm.setPassword(REQUEST.get("widget__pw")) 47 46 #pw = REQUEST.get("widget__pw") 47 #pm.setPassword(pw) 48 psm = 'Email hay been successfully set.' 49 #psm += 'please <a href="login_form">Login</a> with username %s and password %s' % (context.getId(),pw) 48 50 return context.eligibility_form(rendered = res, 49 psm = 'Password and Email have been successfully set',51 psm = psm, 50 52 ds = ds, 51 53 )
Note: See TracChangeset for help on using the changeset viewer.