Changeset 2670 for WAeUP_SRP/base


Ignore:
Timestamp:
15 Nov 2007, 22:07:14 (17 years ago)
Author:
Henrik Bettermann
Message:

further modifications for session change

Location:
WAeUP_SRP/base
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/WAeUPTool.py

    r2666 r2670  
    760760            sex = 'F'
    761761        da['jamb_sex'] = sex
     762        da['jamb_age'] = brain.jamb_age
    762763        #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
    769766        da['jamb_score'] = brain.aggregate
    770767        da['app_email'] = brain.email
     
    781778        da['jamb_lastname'] = brain.lastname
    782779        da['jamb_middlename'] = brain.middlenames   # different field names!
    783         da['firstname'] = brain.firstname
     780        da['jamb_firstname'] = brain.firstname
    784781        da['screening_application_date'] = brain.application_date
    785782        da['date_of_birth'] = brain.date_of_birth
     
    818815        dc = {'Title': 'Clearance/Eligibility Record'}
    819816        dc['lga'] = brain.lga
     817        dc['birthday'] = brain.date_of_birth
    820818        clearance.getContent().edit(mapping=dc)
    821819        #self.portal_workflow.doActionFor(clearance,'close',dest_container=clearance)
  • WAeUP_SRP/base/skins/waeup_epayment/dumpSCPayments.py

    r2667 r2670  
    2525import logging
    2626import DateTime
    27 logger = logging.getLogger('Skins.dumpSCPayments.py')
     27logger = logging.getLogger('Skins.dumpSCPayments')
    2828from Products.AdvancedQuery import Eq, Between, Le,In
    2929aq_pins = context.portal_pins.evalAdvancedQuery
     
    4444
    4545used_query = ~Eq('student','') & ~In('prefix_batch',('APP1','APP2','APP3','APP4','APP5',))
    46              
     46
    4747pins = aq_pins(used_query,sortSpecs=('student',))
    4848#set_trace()
     
    8282                #     break
    8383            count += 1
    84         student_id = d['student_id'] = pin.student 
     84        student_id = d['student_id'] = pin.student
    8585        costs = ["%8.2f" % cost_dict[pin.prefix_batch],]
    8686        pins = [pin.pin,]
     
    9494logger.info('%s dumped sc payments to %s' % (member,csv_name))
    9595logger.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  
    4040              <label tal:content="widget/label_edit"
    4141                     tal:attributes="for cell/widget_input_area_id|nothing;">label</label>:
    42             </div>
     42           
    4343            <button type="button" class="tooltipControl"
    4444                    tal:condition="widget/help"
    4545                    tal:attributes="onclick python:'toggleElementVisibility(\'%s\')' % tooltip_id;"> ? </button>
     46            </div>       
    4647            </td>
    4748            <td valign="bottom">
  • WAeUP_SRP/base/skins/waeup_layout/layout_waeup_edit.pt

    r2332 r2670  
    5656              tal:content="widget/label_edit"
    5757              tal:attributes="for cell/widget_input_area_id|nothing;">label</label>
    58           </div>
     58         
    5959          <button type="button" class="tooltipControl"
    6060                  tal:condition="widget/help"
    6161                  tal:attributes="onclick python:'toggleElementVisibility(\'%s\')' % tooltip_id;"> ? </button>
     62          </div>
    6263          <div class="field">
    6364            <div tal:replace="structure cell/widget_rendered"/>
  • WAeUP_SRP/base/skins/waeup_student/application_view.pt

    r2573 r2670  
    77      <span tal:condition="info">
    88           
    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
    1810        <a href=""
    1911           tal:attributes="href string:${here/academicsParent}">
  • WAeUP_SRP/base/skins/waeup_student/apply_admission.py

    r2598 r2670  
    6868        if not object['passport']:
    6969                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']):
    7171            submitted = True
    7272
  • WAeUP_SRP/base/skins/waeup_student/apply_admission_form.pt

    r2586 r2670  
    7373          <metal:block tal:condition="python:info['status'] == 'created'">
    7474              <br />
    75                 <strong>You that you have 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.
    7676                        Please purchase a second Application Scratch Card and proceed to 'Check Admission'.</strong>
    7777              <br />  <br /> 
  • WAeUP_SRP/base/skins/waeup_student/clearance_edit.py

    r2491 r2670  
    7474    #from Products.zdb import set_trace
    7575    #set_trace()
    76     info['clear_doc'].edit(mapping = {'cleared_date': current,})
     76    clear_doc.edit(mapping = {'cleared_date': current,})
    7777    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   
    7887    psm = "Clearance and eligibility record is validated and student is cleared!"
    7988elif clear_and_validate_button and info['review_state'] == "cleared_and_validated":
     
    103112            req_found = [scan for scan in required_scans if scan in files]
    104113            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. "           
    108120            else:
    109121                logger.info('%s requested clearance' % (student_id))
    110                 info['clear_doc'].edit(mapping = {'request_date': current,})
     122                clear_doc.edit(mapping = {'request_date': current,})
    111123                wftool.doActionFor(info['clear'],'close')
    112124                wftool.doActionFor(info['student'],'request_clearance',dest_container=1)
  • WAeUP_SRP/base/skins/waeup_student/getClearanceInfo.py

    r1871 r2670  
    5353info['clear_doc'] = student.clearance.getContent()
    5454info['clear_review_state'] = wf.getInfoFor(student.clearance,'review_state',None)
     55info['per'] = student.personal
     56info['per_review_state'] = wf.getInfoFor(student.personal,'review_state',None)
    5557if info['review_state'] in ('clearance_requested', 'cleared_and_validated',):
    5658    info['penalty'] = info['penalty'] and\
Note: See TracChangeset for help on using the changeset viewer.