Changeset 164 for waeup_product/trunk/skins/waeup_student
- Timestamp:
- 10 Nov 2005, 21:40:01 (19 years ago)
- Location:
- waeup_product/trunk/skins/waeup_student
- Files:
-
- 7 added
- 6 edited
- 1 copied
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
waeup_product/trunk/skins/waeup_student/add_course_ticket.py
r163 r164 22 22 ob={}, 23 23 layout_mode='create', 24 create_action = ' register_study_level',24 create_action = 'add_course_ticket', 25 25 ) 26 26 if True or psm == 'invalid': -
waeup_product/trunk/skins/waeup_student/book_accommodation.py
r163 r164 21 21 ob={}, 22 22 layout_mode='create', 23 create_action = 'book_accommodation', 23 24 ) 24 25 if psm == 'invalid': 25 return context. check_admission_form(rendered = res,26 return context.book_accommodation_form(rendered = res, 26 27 psm = "Please correct your input", 27 28 ds = ds, 28 29 ) 29 30 elif psm == '': 30 return context. check_admission_form(rendered = res,31 return context.book_accommodation_form(rendered = res, 31 32 psm = None, 32 33 ds = ds, … … 36 37 halls = getattr(context,'accommodation').contentValues() 37 38 beds = [] 38 student = context. getContent()39 student = context.PERSONAL.getContent() 39 40 sf = context.getContent() 40 41 for hall in halls: -
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 -
waeup_product/trunk/skins/waeup_student/check_admission_form.pt
r124 r164 13 13 > 14 14 </metal:block> 15 16 <metal:block fill-slot="main"> 17 <h1>Check your admission status!</h1> 18 <div tal:replace="structure rendered_main" /> 15 <metal:block fill-slot="main"> 16 <h1> Check Your Admission Status! </h1> 17 <div tal:replace="structure rendered_main" /> 18 Instructions :<br /> 19 <ul> 20 <li>Enter the scratch card PIN for admission check </li> 21 <li>Print the Admission Slip which is displayed if you are admitted by the School </li> 22 <li>Buy a Clearance card </li> 23 <li>Proceed to the Clearance Eligibility Online Form and fill your O/L details </li> 24 <li>Proceed to the School with all original documents for Clearance to finalize the clearance process </li> 25 </ul> 26 </metal:block> 27 <metal:block fill-slot="sub"> 28 </metal:block> 19 29 </metal:block> 20 <metal:block fill-slot="sub">21 30 </metal:block> 22 23 </metal:block>24 </metal:block>25 31 </tal:block> -
waeup_product/trunk/skins/waeup_student/layout_accobook_create.pt
r117 r164 10 10 edit_form python:ti and ti.getActionById('edit', 'cpsdocument_edit_form') or 'cpsdocument_edit_form'; 11 11 metadata_form python:ti and ti.getActionById('metadata', 'cpsdocument_metadata') or 'cpsdocument_metadata'; 12 formaction string:check_admission_form;13 12 first_layout options/first_layout|python:0; 14 13 last_layout options/last_layout|python:0; … … 17 16 " 18 17 > 19 <form action=' book_accommodation' method='post'18 <form action='' method='post' tal:attributes="action string:${options/create_action}" 20 19 enctype='multipart/form-data' class='workflow'> 21 20 <div class='group'> … … 81 80 </form> 82 81 </metal:block> 83 -
waeup_product/trunk/skins/waeup_student/layout_clearence_create.pt
r160 r164 17 17 " 18 18 > 19 <form action='c heck_admission' method='post'19 <form action='clearence' method='post' 20 20 enctype='multipart/form-data' class='workflow'> 21 21 <div class='group'> -
waeup_product/trunk/skins/waeup_student/process_waeup_login.py
r152 r164 37 37 pd.getContent().edit(mapping=pkw) 38 38 context.notifyCPSDocumentCreation(ob=pd) 39 return response.redirect(ma.absolute_url())40 39 40 return response.redirect("%s/eligibility" % ma.absolute_url()) 41 return ma.eligibility(REQUEST=context.REQUEST) 42 -
waeup_product/trunk/skins/waeup_student/register_level.py
r152 r164 2 2 # $Id$ 3 3 """ 4 book an accomodation 4 register for next level 5 5 """ 6 6 type_name = 'StudyLevel' … … 17 17 18 18 res,psm,ds = lt.renderLayout(layout_id= 'study_level', 19 schema_id= ' metadata',19 schema_id= 'study_level', 20 20 context=context, 21 21 mapping=validate and REQUEST, … … 28 28 create = 1, 29 29 type_name = type_name, 30 #psm = 'Not yet active',31 psm = 'Please correct your errors',30 psm = str(ds), 31 #psm = 'Please correct your errors', 32 32 ) 33 33 elif psm == '': … … 40 40 41 41 elif psm == 'valid': 42 psm = (ds) 43 oid = ds.get('Title') 44 if hasattr(context,oid): 42 voc = pv.courselevel 43 level_id = voc.items()[0][0] 44 level = getattr(context,level_id,None) 45 if level: 45 46 return context.common_edit_form(rendered = res, 46 47 create = 1, 47 48 type_name = type_name, 48 psm = 'You already registered for that level',49 psm = "You have already registered for Level %s" % voc.get(level_id) 49 50 ) 50 context.invokeFactory(type_name,oid)51 object = getattr(context,oid)52 voc = pv.courselevel53 ds.set('Title',voc.get( oid))51 52 context.invokeFactory(type_name,level_id) 53 object = getattr(context,level_id) 54 ds.set('Title',voc.get(level_id)) 54 55 object.getContent().edit(mapping=ds,proxy=object) 55 56 context.notifyCPSDocumentCreation(ob=object) 56 psm = 'new %s created' % oid57 semester_id = 'Semester_1_%s_%s' % ( oid,context.getId())57 psm = 'new %s created' % level_id 58 semester_id = 'Semester_1_%s_%s' % (level_id,context.getId()) 58 59 object.invokeFactory('Semester',semester_id) 59 60 semester = getattr(object,semester_id) 60 61 semester.getContent().edit(mapping={'Title': 'First Semester'}) 61 semester_id = 'Semester_2_%s_%s' % ( oid,context.getId())62 semester_id = 'Semester_2_%s_%s' % (level_id,context.getId()) 62 63 object.invokeFactory('Semester',semester_id) 63 64 semester = getattr(object,semester_id)
Note: See TracChangeset for help on using the changeset viewer.