Changeset 502 for WAeUP_SRP/trunk/skins
- Timestamp:
- 11 Sep 2006, 10:39:59 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins
- Files:
-
- 1 added
- 5 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_academics/academics_contents.pt
r486 r502 43 43 </div> 44 44 <span tal:omit-tag="" tal:condition="python:display_buttons or context.display_content()" 45 tal:content="structure doc/render" />45 tal:content="structure python: doc.render(proxy=here,layout_mode='view')" /> 46 46 47 47 <form action="" method="post" class="group" -
WAeUP_SRP/trunk/skins/waeup_custom/logged_in.pt
r486 r502 38 38 dum_home mtool/createMemberArea" 39 39 > 40 <span tal:condition=" nothing"40 <span tal:condition="python:1" 41 41 tal:define="dummy python: context.process_waeup_login(member=member,sc_pin=request.get('sc_pin',None))" /> 42 42 <tal:block condition="first_time"> -
WAeUP_SRP/trunk/skins/waeup_default/process_waeup_login.py
r472 r502 7 7 request = context.REQUEST 8 8 response=request.response 9 return 10 ## 11 ##if request.form.get('submit') == 'Login': 12 ## #waeup = context.portal_catalog(id = 'demouni')[0] 13 ## #waeup = context.portal_catalog(portal_type = 'University')[0] 14 ## if 1 or "Manager" in member.getRoles(): 15 ## return 16 ###return 17 ##member_id = str(member) 9 import DateTime 10 current = DateTime.DateTime() 11 # 12 if request.form.get('submit') == 'Login': 13 if "Manager" in member.getRoles(): 14 return 15 member_id = str(member) 16 student = getattr(context.students,member_id) 17 application = student.application 18 #student.invokeFactory('StudentPersonal','personal') 19 apdoc = application.getContent() 20 names = apdoc.jamb_lastname.split() 21 dp = {} 22 if len(names) == 3: 23 dp['firstname'] = names[0].capitalize() 24 dp['middlename'] = names[1].capitalize() 25 dp['lastname'] = names[2].capitalize() 26 elif len(names) == 2: 27 dp['firstname'] = names[0].capitalize() 28 dp['lastname'] = names[1].capitalize() 29 else: 30 dp['lastname'] = apdoc.jamb_lastname 31 dp['sex'] = apdoc.jamb_sex == 'F' 32 dp['lga'] = "%s/%s" % (apdoc.jamb_state,apdoc.jamb_lga ) 33 student.personal.getContent().edit(mapping = dp) 34 ##student.content_status_modify(workflow_action="enter_application_pin") 35 36 da = {} 37 da['app_ac_pin'] = request.get('pin') 38 da['app_ac_date'] = current 39 apdoc.edit(mapping = da) 40 41 return response.redirect("%s/application_form" % student.application.absolute_url()) 42 18 43 ##ma = getattr(context,member_id) 19 44 ##jkw = {'application_sc_pin': sc_pin} … … 53 78 ##context.notifyCPSDocumentCreation(ob=pd) 54 79 ## 55 ##return response.redirect("%s" % ma.absolute_url())56 80 ###return ma.personal_addon(REQUEST=context.REQUEST) 57 81 -
WAeUP_SRP/trunk/skins/waeup_pins/scratch_card_batch_create_do.py
r501 r502 33 33 ob.getContent().edit(mapping=datamodel) 34 34 35 context.notifyCPSDocumentCreation(ob=ob) # BBB obsolete in CPS 3.5.035 #context.notifyCPSDocumentCreation(ob=ob) # BBB obsolete in CPS 3.5.0 36 36 37 37 return ob -
WAeUP_SRP/trunk/skins/waeup_student/apply_admission.py
r488 r502 7 7 import DateTime 8 8 current = DateTime.DateTime() 9 pr = context.portal_registration 9 10 10 11 … … 25 26 layout_mode='create', 26 27 formaction = "apply_admission", 27 submit = "check",28 button = "Open JAMB Record", 28 29 ) 29 30 if psm == 'invalid': … … 43 44 ) 44 45 elif psm == 'valid': 45 jamb_id = ds.get('jamb_reg_no') 46 student = context.getContent().getStudentByRegNo(jamb_id) 47 if student is None: 48 psm = "JAMB record %s not accessible." % (jamb_id) 49 return context.application_pin_form(rendered = res, 50 psm = psm, 51 #psm = "%s, %s" % (psm,ds), 52 ds = ds, 53 ) 54 application = student.application 55 if context.portal_workflow.getInfoFor(student,'review_state',None) == "created": 56 #student.invokeFactory('StudentClearance','clearance') 57 student.invokeFactory('StudentPersonal','personal') 58 student.content_status_modify(workflow_action="enter_application_pin") 46 s_id = ds.get('s_id') 47 return context.REQUEST.RESPONSE.redirect("%s/logged_in?__ac_name=%s&__ac_password=%s&pin=%s" 48 % (context.absolute_url(),s_id,'uNsEt',ds.get('app_ac_pin'))) 49 50 ## jamb_id = ds.get('jamb_reg_no') 51 ## student = context.getContent().getStudentByRegNo(jamb_id) 52 ## if student is None: 53 ## psm = "JAMB record %s not accessible." % (jamb_id) 54 ## return context.application_pin_form(rendered = res, 55 ## psm = psm, 56 ## #psm = "%s, %s" % (psm,ds), 57 ## ds = ds, 58 ## ) 59 ##if context.portal_workflow.getInfoFor(student,'review_state',None) == "created": 60 ## #student.invokeFactory('StudentClearance','clearance') 61 ##da = {} 62 ##pin = str(ds.get('app_ac_pin')) 63 ##da['app_ac_pin'] = pin 64 ##da['app_ac_date'] = current 65 ##apdoc.edit(mapping = da) 59 66 60 67 61 apdoc = application.getContent()62 names = apdoc.jamb_lastname.split()63 dp = {}64 if len(names) == 3:65 dp['firstname'] = names[0].capitalize()66 dp['middlename'] = names[1].capitalize()67 dp['lastname'] = names[2].capitalize()68 elif len(names) == 2:69 dp['firstname'] = names[0].capitalize()70 dp['lastname'] = names[1].capitalize()71 else:72 dp['lastname'] = apdoc.jamb_lastname73 dp['sex'] = apdoc.jamb_sex == 'F'74 dp['lga'] = "%s/%s" % (apdoc.jamb_state,apdoc.jamb_lga )75 student.personal.getContent().edit(mapping = dp)76 da = {}77 da['app_ac_pin'] = ds.get('app_ac_pin')78 da['app_ac_date'] = current79 apdoc.edit(mapping = da)80 68 # now display the passport form with jamb-data readonly 81 69 return context.REQUEST.RESPONSE.redirect("%s/application_form" % (student.application.absolute_url())) -
WAeUP_SRP/trunk/skins/waeup_student/layout_application_edit.pt
r493 r502 81 81 class="standalone" 82 82 name="cpsdocument_create_button" 83 value="apply" 84 i18n:attributes="value" tal:condition="creation" /> 83 value="apply" 84 tal:attributes="value options/button" 85 tal:condition="creation" /> 85 86 86 87 </form> 87 88 89 88 </metal:block> 90 89
Note: See TracChangeset for help on using the changeset viewer.