- Timestamp:
- 15 Nov 2007, 22:07:14 (17 years ago)
- Location:
- WAeUP_SRP
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/WAeUPTool.py
r2666 r2670 760 760 sex = 'F' 761 761 da['jamb_sex'] = sex 762 da['jamb_age'] = brain.jamb_age 762 763 #da['app_ac_pin'] = brain.pin 763 #if brain.lga: 764 # state_lga = brain.lga.split('_') 765 # da['state_lga'] = state_lga[0] 766 # da['jamb_lga'] = state_lga[-1] 767 da['state_lga'] = brain.jamb_lga 768 da['jamb_lga'] = brain.jamb_state 764 da['jamb_lga'] = brain.jamb_lga 765 da['jamb_state'] = brain.jamb_state 769 766 da['jamb_score'] = brain.aggregate 770 767 da['app_email'] = brain.email … … 781 778 da['jamb_lastname'] = brain.lastname 782 779 da['jamb_middlename'] = brain.middlenames # different field names! 783 da[' firstname'] = brain.firstname780 da['jamb_firstname'] = brain.firstname 784 781 da['screening_application_date'] = brain.application_date 785 782 da['date_of_birth'] = brain.date_of_birth … … 818 815 dc = {'Title': 'Clearance/Eligibility Record'} 819 816 dc['lga'] = brain.lga 817 dc['birthday'] = brain.date_of_birth 820 818 clearance.getContent().edit(mapping=dc) 821 819 #self.portal_workflow.doActionFor(clearance,'close',dest_container=clearance) -
WAeUP_SRP/base/skins/waeup_epayment/dumpSCPayments.py
r2667 r2670 25 25 import logging 26 26 import DateTime 27 logger = logging.getLogger('Skins.dumpSCPayments .py')27 logger = logging.getLogger('Skins.dumpSCPayments') 28 28 from Products.AdvancedQuery import Eq, Between, Le,In 29 29 aq_pins = context.portal_pins.evalAdvancedQuery … … 44 44 45 45 used_query = ~Eq('student','') & ~In('prefix_batch',('APP1','APP2','APP3','APP4','APP5',)) 46 46 47 47 pins = aq_pins(used_query,sortSpecs=('student',)) 48 48 #set_trace() … … 82 82 # break 83 83 count += 1 84 student_id = d['student_id'] = pin.student 84 student_id = d['student_id'] = pin.student 85 85 costs = ["%8.2f" % cost_dict[pin.prefix_batch],] 86 86 pins = [pin.pin,] … … 94 94 logger.info('%s dumped sc payments to %s' % (member,csv_name)) 95 95 logger.info("finished for %d students total N %12.2f %12.2f Euros" % (count,sum_total,sum_total/170)) 96 97 96 97 -
WAeUP_SRP/base/skins/waeup_layout/layout_clearance_edit.pt
r2243 r2670 40 40 <label tal:content="widget/label_edit" 41 41 tal:attributes="for cell/widget_input_area_id|nothing;">label</label>: 42 </div>42 43 43 <button type="button" class="tooltipControl" 44 44 tal:condition="widget/help" 45 45 tal:attributes="onclick python:'toggleElementVisibility(\'%s\')' % tooltip_id;"> ? </button> 46 </div> 46 47 </td> 47 48 <td valign="bottom"> -
WAeUP_SRP/base/skins/waeup_layout/layout_waeup_edit.pt
r2332 r2670 56 56 tal:content="widget/label_edit" 57 57 tal:attributes="for cell/widget_input_area_id|nothing;">label</label> 58 </div>58 59 59 <button type="button" class="tooltipControl" 60 60 tal:condition="widget/help" 61 61 tal:attributes="onclick python:'toggleElementVisibility(\'%s\')' % tooltip_id;"> ? </button> 62 </div> 62 63 <div class="field"> 63 64 <div tal:replace="structure cell/widget_rendered"/> -
WAeUP_SRP/base/skins/waeup_student/application_view.pt
r2573 r2670 7 7 <span tal:condition="info"> 8 8 9 <div style="text-align: right" tal:define="review_state info/review_state" 10 tal:condition="python:review_state not in ('created','application_pin_entered',)"> 11 <a href="" target="slip" tal:attributes="href string:application_slip" 12 onclick="javascript:window.open('','slip','width=600, height=700, directories=no, toolbar=no, location=no, menubar=yes, scrollbars=yes, status=no, resizable=no, dependent=no')"> 13 <img tal:attributes="src string:${here/portal_url}/actionicon_print.png" /> 14 Application Slip 15 </a> 16 17 </div> 9 18 10 <a href="" 19 11 tal:attributes="href string:${here/academicsParent}"> -
WAeUP_SRP/base/skins/waeup_student/apply_admission.py
r2598 r2670 68 68 if not object['passport']: 69 69 object['passport'] = '' 70 if object['status'] and ('submitted' in object['status'] or 'admitted' in object['status'] ):70 if object['status'] and ('submitted' in object['status'] or 'admitted' in object['status'] or 'created' in object['status']): 71 71 submitted = True 72 72 -
WAeUP_SRP/base/skins/waeup_student/apply_admission_form.pt
r2586 r2670 73 73 <metal:block tal:condition="python:info['status'] == 'created'"> 74 74 <br /> 75 <strong>You that youhave been provisionally admitted into University of Benin. Your member record has been created.75 <strong>You have been provisionally admitted into University of Benin. Your member record has been created. 76 76 Please purchase a second Application Scratch Card and proceed to 'Check Admission'.</strong> 77 77 <br /> <br /> -
WAeUP_SRP/base/skins/waeup_student/clearance_edit.py
r2491 r2670 74 74 #from Products.zdb import set_trace 75 75 #set_trace() 76 info['clear_doc'].edit(mapping = {'cleared_date': current,})76 clear_doc.edit(mapping = {'cleared_date': current,}) 77 77 wftool.doActionFor(info['student'],'clear_and_validate') 78 79 if info['per_review_state'] != 'opened': 80 wftool.doActionFor(info['per'],'open') 81 82 per_doc = info['per'].getContent() 83 per_doc.edit(mapping = {'firstname': clear_doc.firstname, 'middlename': clear_doc.middlename, 'lastname': clear_doc.lastname,}) 84 85 86 78 87 psm = "Clearance and eligibility record is validated and student is cleared!" 79 88 elif clear_and_validate_button and info['review_state'] == "cleared_and_validated": … … 103 112 req_found = [scan for scan in required_scans if scan in files] 104 113 birth_found = "age_dec" in files or "birth_certificate" in files 105 if not req_found or not birth_found: 106 logger.info('%s requested clearance with documents missing' % (student_id)) 107 psm = "You have not uploaded all necessary documents to request clearance!" 114 #if not req_found or not birth_found: 115 # logger.info('%s requested clearance with documents missing' % (student_id)) 116 # psm = "You have not uploaded all necessary documents to request clearance!" 117 if not clear_doc.firstname or not clear_doc.lastname: 118 logger.info('%s requested clearance without confirming name' % (student_id)) 119 psm = "Please fill the name fields! First and last name are required. " 108 120 else: 109 121 logger.info('%s requested clearance' % (student_id)) 110 info['clear_doc'].edit(mapping = {'request_date': current,})122 clear_doc.edit(mapping = {'request_date': current,}) 111 123 wftool.doActionFor(info['clear'],'close') 112 124 wftool.doActionFor(info['student'],'request_clearance',dest_container=1) -
WAeUP_SRP/base/skins/waeup_student/getClearanceInfo.py
r1871 r2670 53 53 info['clear_doc'] = student.clearance.getContent() 54 54 info['clear_review_state'] = wf.getInfoFor(student.clearance,'review_state',None) 55 info['per'] = student.personal 56 info['per_review_state'] = wf.getInfoFor(student.personal,'review_state',None) 55 57 if info['review_state'] in ('clearance_requested', 'cleared_and_validated',): 56 58 info['penalty'] = info['penalty'] and\ -
WAeUP_SRP/uniben/profiles/default/layouts/student_application.xml
r2582 r2670 9 9 <property name="validate_values_expr"></property> 10 10 <widget name="app_ac_date" meta_type="DateTime Widget"> 11 <property name="title">A pplicationDate</property>11 <property name="title">Admission Checking Date</property> 12 12 <property name="fields"> 13 13 <element value="app_ac_date"/> 14 14 </property> 15 <property name="label">A pplicationDate</property>16 <property name="label_edit">A pplicationDate</property>15 <property name="label">Admission Checking Date</property> 16 <property name="label_edit">Admission Checking Date</property> 17 17 <property name="readonly_layout_modes"> 18 18 <element value="edit"/> … … 26 26 </widget> 27 27 <widget name="app_ac_pin" meta_type="Scratchcard Pin Widget"> 28 <property name="title">A ccess Code</property>28 <property name="title">Admission Checking PIN</property> 29 29 <property name="fields"> 30 30 <element value="app_ac_pin"/> 31 31 </property> 32 <property name="label">A ccess Code</property>33 <property name="label_edit">A ccess Code</property>32 <property name="label">Admission Checking PIN</property> 33 <property name="label_edit">Admission Checking PIN</property> 34 34 <property name="readonly_layout_modes"> 35 35 <element value="edit"/> … … 237 237 <property name="hidden_readonly_layout_modes"/> 238 238 </widget> 239 <widget name="course3" meta_type="String Widget"> 240 <property name="title">Third Choice Course of Study</property> 241 <property name="fields"> 242 <element value="course3"/> 243 </property> 244 <property name="label">Third Choice Course of Study</property> 245 <property name="label_edit">Third Choice Course of Study</property> 246 <property name="readonly_layout_modes"> 247 <element value="edit"/> 248 </property> 249 <property name="hidden_layout_modes"> 250 <element value="create"/> 251 </property> 252 <property name="hidden_readonly_layout_modes"/> 253 </widget> 239 254 240 255 <widget name="jamb_sex" meta_type="String Widget"> … … 510 525 <cell name="jamb_second_cos" ncols="3"/> 511 526 </row> 527 <row> 528 <cell name="course3" ncols="3"/> 529 </row> 530 512 531 513 532 -
WAeUP_SRP/uniben/profiles/default/layouts/student_clearance.xml
r2585 r2670 8 8 <property name="flexible_widgets"/> 9 9 <property name="validate_values_expr"></property> 10 11 <widget name="firstname" meta_type="String Widget"> 12 <property name="title">First Name</property> 13 <property name="fields"> 14 <element value="firstname"/> 15 </property> 16 <property name="is_required">False</property> 17 <property name="label">First Name</property> 18 <property name="label_edit">First Name</property> 19 <property 20 name="help"></property> 21 <property name="readonly_layout_modes"/> 22 <property name="hidden_layout_modes"> 23 <element value="create"/> 24 </property> 25 <property name="hidden_readonly_layout_modes"/> 26 </widget> 27 28 <widget name="middlename" meta_type="String Widget"> 29 <property name="title">Middle Name</property> 30 <property name="fields"> 31 <element value="middlename"/> 32 </property> 33 <property name="label">Middle Name</property> 34 <property name="label_edit">Middle Name</property> 35 <property 36 name="help"></property> 37 <property name="readonly_layout_modes"/> 38 <property name="hidden_layout_modes"> 39 <element value="create"/> 40 </property> 41 <property name="hidden_readonly_layout_modes"/> 42 </widget> 43 44 <widget name="lastname" meta_type="String Widget"> 45 <property name="title">Last Name (Surname)</property> 46 <property name="fields"> 47 <element value="lastname"/> 48 </property> 49 <property name="is_required">False</property> 50 <property name="label">Last Name (Surname)</property> 51 <property name="label_edit">Last Name (Surname)</property> 52 <property 53 name="help"></property> 54 <property name="readonly_layout_modes"/> 55 <property name="hidden_layout_modes"> 56 <element value="create"/> 57 </property> 58 <property name="hidden_readonly_layout_modes"/> 59 </widget> 60 61 62 10 63 <widget name="acc_inst" meta_type="File Image Widget"> 11 64 <property name="title">Accepted by Institution</property> … … 83 136 <property name="description">Advanced Level Data</property> 84 137 <property 85 name="help"> Full name as it appears on certificate/result</property>138 name="help"></property> 86 139 <property name="readonly_layout_modes"/> 87 140 <property name="hidden_layout_modes"> … … 221 274 <property name="label_edit">Deferment of Admission</property> 222 275 <property 223 name="help"> Tick this box if you wish to defer admission till next session.</property>276 name="help"></property> 224 277 <property name="readonly_layout_modes"/> 225 278 <property name="hidden_layout_modes"> … … 336 389 <property name="description">First Sitting Data</property> 337 390 <property 338 name="help"> Full name as it appears on certificate/result</property>391 name="help"></property> 339 392 <property name="readonly_layout_modes"/> 340 393 <property name="hidden_layout_modes"> … … 651 704 <property name="description">Second Sitting Data</property> 652 705 <property 653 name="help"> Full name as it appears on certificate/result</property>706 name="help"></property> 654 707 <property name="readonly_layout_modes"/> 655 708 <property name="hidden_layout_modes"> … … 748 801 <table> 749 802 <row> 803 <cell name="firstname"/> 804 </row> 805 <row> 806 <cell name="middlename"/> 807 </row> 808 <row> 809 <cell name="lastname"/> 810 </row> 811 <row> 750 812 <cell name="matric_no"/> 751 813 </row> -
WAeUP_SRP/uniben/profiles/default/layouts/student_clearance_fe.xml
r2335 r2670 8 8 <property name="flexible_widgets"/> 9 9 <property name="validate_values_expr"></property> 10 11 12 <widget name="firstname" meta_type="String Widget"> 13 <property name="title">First Name</property> 14 <property name="fields"> 15 <element value="firstname"/> 16 </property> 17 <property name="label">First Name</property> 18 <property name="label_edit">First Name</property> 19 <property name="is_required">False</property> 20 <property 21 name="help">Please confirm your first name. After clearance this name will appear on all documents.</property> 22 <property name="readonly_layout_modes"/> 23 <property name="hidden_layout_modes"> 24 <element value="create"/> 25 </property> 26 <property name="hidden_readonly_layout_modes"/> 27 </widget> 28 29 <widget name="middlename" meta_type="String Widget"> 30 <property name="title">Middle Name</property> 31 <property name="fields"> 32 <element value="middlename"/> 33 </property> 34 <property name="label">Middle Name</property> 35 <property name="label_edit">Middle Name</property> 36 <property 37 name="help">Please confirm your middle name. After clearance this name will appear on all documents.</property> 38 <property name="readonly_layout_modes"/> 39 <property name="hidden_layout_modes"> 40 <element value="create"/> 41 </property> 42 <property name="hidden_readonly_layout_modes"/> 43 </widget> 44 45 <widget name="lastname" meta_type="String Widget"> 46 <property name="title">Last Name (Surname)</property> 47 <property name="fields"> 48 <element value="lastname"/> 49 </property> 50 <property name="is_required">False</property> 51 <property name="label">Last Name (Surname)</property> 52 <property name="label_edit">Last Name (Surname)</property> 53 <property 54 name="help">Please confirm your surname. After clearance this name will appear on all documents.</property> 55 <property name="readonly_layout_modes"/> 56 <property name="hidden_layout_modes"> 57 <element value="create"/> 58 </property> 59 <property name="hidden_readonly_layout_modes"/> 60 </widget> 61 10 62 <widget name="acc_inst" meta_type="File Image Widget"> 11 63 <property name="title">Accepted by Institution</property> … … 562 614 <property name="hidden_layout_modes"> 563 615 <element value="create"/> 616 <element value="edit"/> 564 617 </property> 565 618 <property name="hidden_readonly_layout_modes"/> … … 579 632 <property name="hidden_layout_modes"> 580 633 <element value="create"/> 634 <element value="edit"/> 581 635 </property> 582 636 <property name="hidden_readonly_layout_modes"/> … … 753 807 </widget> 754 808 <table> 809 810 <row> 811 <cell name="firstname"/> 812 </row> 813 <row> 814 <cell name="middlename"/> 815 </row> 816 <row> 817 <cell name="lastname"/> 818 </row> 755 819 <row> 756 820 <cell name="matric_no"/> -
WAeUP_SRP/uniben/profiles/default/schemas/student_clearance.xml
r1876 r2670 2 2 <?xml-stylesheet type="text/xsl" href="schema.xsl"?> 3 3 <object name="student_clearance" meta_type="CPS Schema"> 4 5 <field name="firstname" meta_type="CPS String Field"/> 6 <field name="middlename" meta_type="CPS String Field"/> 7 <field name="lastname" meta_type="CPS String Field"/> 4 8 5 9 <field name="clr_ac_pin" meta_type="CPS String Field">
Note: See TracChangeset for help on using the changeset viewer.