Changeset 775


Ignore:
Timestamp:
29 Oct 2006, 14:22:08 (18 years ago)
Author:
Henrik Bettermann
Message:

PUME import results in states pume_passed or pume_failed depending on the total PUME score
in clearance layout all file uploads removed to enable editing (temporary solution)

Location:
WAeUP_SRP/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Students.py

    r766 r775  
    245245                 'wrong': "Wrong",
    246246                 'pume_eng_score': "EngScore",
    247                  'pume_gen_score': "GenScore",                 
     247                 'pume_gen_score': "GenScore",
    248248                 'pume_tot_score': "Right",
    249249                 'batch': "Batch",
     
    311311            student.manage_setLocalRoles(sid, ['Owner',])
    312312            student.invokeFactory('StudentClearance','clearance')
    313             wftool.doActionFor(student.clearance,'open')
     313            #wftool.doActionFor(student.clearance,'open')
    314314            dp = {'Title': 'Clearance Data'}
    315315            student.clearance.manage_setLocalRoles(sid, ['Owner',])
     
    340340                         )
    341341            for f in dp_fields:
    342                 dp[f] = jamb.get(csv_d[f])
     342                dp[f] = float(jamb.get(csv_d[f]))
    343343            pume = student.pume
    344344            pume.getContent().edit(mapping=dp)
     
    346346            pume.manage_setLocalRoles(sid, ['Owner',])
    347347            student.getContent().createSubObjects()
    348             wftool.doActionFor(student,'admit',dest_container=student)
     348            if dp['pume_tot_score']>49:
     349                wftool.doActionFor(student,'pume_pass',dest_container=student)
     350            else:
     351                wftool.doActionFor(student,'pume_fail',dest_container=student)
    349352            if len(no_import) > 1:
    350353                open("%s/import/%s_not_imported.csv" % (i_home,name),"w").write(
  • WAeUP_SRP/trunk/profiles/default/layouts/student_clearance_fe.xml

    r774 r775  
    1212   <element value="acc_inst"/>
    1313  </property>
    14   <property name="is_required">True</property>
     14 
    1515  <property name="label">Accepted by Institution</property>
    1616  <property name="label_edit">Accepted by Institution</property>
     
    2828   <element value="acc_let"/>
    2929  </property>
    30   <property name="is_required">True</property>
     30 
    3131  <property name="label">Acceptance Letter </property>
    3232  <property name="label_edit">Acceptance Letter </property>
     
    5757   <element value="age_dec"/>
    5858  </property>
    59   <property name="is_required">True</property>
     59 
    6060  <property name="label">Age Declaration</property>
    6161  <property name="label_edit">Age Declaration</property>
     
    108108   <element value="alr_scan"/>
    109109  </property>
    110   <property name="is_required">True</property>
     110 
    111111  <property name="label">Scan of Advanced Level Result</property>
    112112  <property name="label_edit">Scan of Advanced Level Result</property>
     
    124124   <element value="birth_certificate"/>
    125125  </property>
    126   <property name="is_required">True</property>
     126 
    127127  <property name="label">Birth Certificate</property>
    128128  <property name="label_edit">Birth Certificate</property>
     
    151151   <element value="cert"/>
    152152  </property>
    153   <property name="is_required">True</property>
     153 
    154154  <property name="label">Certificateficate</property>
    155155  <property name="label_edit">Certificateficate</property>
     
    183183   <element value="cred"/>
    184184  </property>
    185   <property name="is_required">True</property>
     185 
    186186  <property name="label">Credential</property>
    187187  <property name="label_edit">Credential</property>
     
    245245   <element value="evid"/>
    246246  </property>
    247   <property name="is_required">True</property>
     247 
    248248  <property name="label">Evidence of Name</property>
    249249  <property name="label_edit">Evidence of Name</property>
     
    318318   <element value="fst_sit_scan"/>
    319319  </property>
    320   <property name="is_required">True</property>
     320 
    321321  <property name="label">Scan of First Sitting Result</property>
    322322  <property name="label_edit">Scan of First Sitting Result</property>
     
    380380   <element value="hq_scan"/>
    381381  </property>
    382   <property name="is_required">True</property>
     382 
    383383  <property name="label">Scan of Higher Qualification Result</property>
    384384  <property name="label_edit">Scan of Higher Qualification Result</property>
     
    430430   <element value="jamb_let"/>
    431431  </property>
    432   <property name="is_required">True</property>
     432 
    433433  <property name="label">JAMB Letter</property>
    434434  <property name="label_edit">JAMB Letter</property>
     
    446446   <element value="jamb_slip"/>
    447447  </property>
    448   <property name="is_required">True</property>
     448 
    449449  <property name="label">JAMB Slip</property>
    450450  <property name="label_edit">JAMB Slip</property>
     
    474474   <element value="lga_ident"/>
    475475  </property>
    476   <property name="is_required">True</property>
     476 
    477477  <property name="label">LGA Identification</property>
    478478  <property name="label_edit">LGA Identification</property>
     
    515515   <element value="ref_let"/>
    516516  </property>
    517   <property name="is_required">True</property>
     517 
    518518  <property name="label">Referee Letter</property>
    519519  <property name="label_edit">Referee Letter</property>
     
    531531   <element value="res_stat"/>
    532532  </property>
    533   <property name="is_required">True</property>
     533 
    534534  <property name="label">Result Statement</property>
    535535  <property name="label_edit">Result Statement</property>
     
    593593   <element value="scd_sit_scan"/>
    594594  </property>
    595   <property name="is_required">True</property>
     595 
    596596  <property name="label">Scan of Second Sitting Result</property>
    597597  <property name="label_edit">Scan of Second Sitting Result</property>
     
    621621   <element value="stat_dec"/>
    622622  </property>
    623   <property name="is_required">True</property>
     623 
    624624  <property name="label">Statutory Declaration of Good Conduct</property>
    625625  <property name="label_edit">Statutory Declaration of Good Conduct</property>
     
    655655 </widget>
    656656 <table>
    657   <row>
    658    <cell name="matric_no"/>
    659   </row>
    660   <row>
    661    <cell name="clr_ac_pin"/>
    662   </row>
    663   <row>
    664    <cell name="entry_date"/>
    665   </row>
    666   <row>
    667    <cell name="entry_session"/>
    668   </row>
    669657  <row>
    670658   <cell name="birthday"/>
     
    679667   <cell name="email"/>
    680668  </row>
    681   <row>
    682    <cell name="fst_sit_fname"/>
    683   </row>
    684   <row>
    685    <cell name="fst_sit_no"/>
    686   </row>
    687   <row>
    688    <cell name="fst_sit_date"/>
    689   </row>
    690   <row>
    691    <cell name="fst_sit_type"/>
    692   </row>
    693   <row>
    694    <cell name="fst_sit_scan"/>
    695   </row>
    696   <row>
    697    <cell name="scd_sit_fname"/>
    698   </row>
    699   <row>
    700    <cell name="scd_sit_no"/>
    701   </row>
    702   <row>
    703    <cell name="scd_sit_date"/>
    704   </row>
    705   <row>
    706    <cell name="scd_sit_type"/>
    707   </row>
    708   <row>
    709    <cell name="scd_sit_scan"/>
    710   </row>
    711   <row>
    712    <cell name="alr_fname"/>
    713   </row>
    714   <row>
    715    <cell name="alr_no"/>
    716   </row>
    717   <row>
    718    <cell name="alr_date"/>
    719   </row>
    720   <row>
    721    <cell name="alr_scan"/>
    722   </row>
    723   <row>
    724    <cell name="hq_type"/>
    725   </row>
    726   <row>
    727    <cell name="hq_grade"/>
    728   </row>
    729   <row>
    730    <cell name="hq_school"/>
    731   </row>
    732   <row>
    733    <cell name="hq_matric_no"/>
    734   </row>
    735   <row>
    736    <cell name="hq_session"/>
    737   </row>
    738   <row>
    739    <cell name="hq_disc"/>
    740   </row>
    741   <row>
    742    <cell name="hq_scan"/>
    743   </row>
    744   <row>
    745    <cell name="birth_certificate"/>
    746   </row>
    747   <row>
    748    <cell name="lga_ident"/>
    749   </row>
    750   <row>
    751    <cell name="acc_let"/>
    752   </row>
    753   <row>
    754    <cell name="jamb_slip"/>
    755   </row>
    756   <row>
    757    <cell name="cert"/>
    758   </row>
    759   <row>
    760    <cell name="evid"/>
    761   </row>
    762   <row>
    763    <cell name="jamb_let"/>
    764   </row>
    765   <row>
    766    <cell name="res_stat"/>
    767   </row>
    768   <row>
    769    <cell name="ref_let"/>
    770   </row>
    771   <row>
    772    <cell name="cred"/>
    773   </row>
    774   <row>
    775    <cell name="stat_dec"/>
    776   </row>
    777   <row>
    778    <cell name="age_dec"/>
    779   </row>
    780   <row>
    781    <cell name="acc_inst"/>
    782   </row>
    783   <row>
    784    <cell name="fst_ch"/>
    785   </row>
    786   <row>
    787    <cell name="scd_ch"/>
    788   </row>
    789   <row>
    790    <cell name="sup_adm"/>
    791   </row>
    792   <row>
    793    <cell name="uniben"/>
    794   </row>
    795   <row>
    796    <cell name="form_matric_no"/>
    797   </row>
    798   <row>
    799    <cell name="def_adm"/>
    800   </row>
    801   <row>
    802    <cell name="acknow"/>
    803   </row>
    804669 </table>
    805670</object>
  • WAeUP_SRP/trunk/skins/waeup_default/portlet_waeup_status_display.pt

    r770 r775  
    66                                        'admission_applied',
    77                                        'cleared_and_validated',
     8                                        'pume_passed',
     9                                        'pume_failed',
    810                                        'admitted',
    911                                        'clearance_pin_entered',
Note: See TracChangeset for help on using the changeset viewer.