Changeset 2670 for WAeUP_SRP/base
- Timestamp:
- 15 Nov 2007, 22:07:14 (17 years ago)
- Location:
- WAeUP_SRP/base
- Files:
-
- 9 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\
Note: See TracChangeset for help on using the changeset viewer.