Changeset 3628 for WAeUP_SRP/unilorin


Ignore:
Timestamp:
26 Aug 2008, 07:18:47 (16 years ago)
Author:
Henrik Bettermann
Message:

implement cgpa and cascore

Location:
WAeUP_SRP/unilorin
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/unilorin/profiles/default/course_results.xml

    r3609 r3628  
    1111 <column value="session_id"/>
    1212 <column value="score"/>
     13 <column value="cascore"/>
    1314 <column value="grade"/>
    1415 <column value="lecturer"/>
     
    2122 <index name="lecturer" meta_type="FieldIndex">
    2223  <indexed_attr value="lecturer"/>
    23  </index> 
     24 </index>
    2425 <index name="student_id" meta_type="FieldIndex">
    2526  <indexed_attr value="student_id"/>
  • WAeUP_SRP/unilorin/profiles/default/layouts/import_course_result.xml

    r3574 r3628  
    153153  </widget>
    154154
     155  <widget name="cascore" meta_type="Int Widget">
     156    <property name="title">CA Score</property>
     157    <property name="fields">
     158      <element value="cascore"/>
     159    </property>
     160    <property name="is_required">False</property>
     161    <property name="label">CA Score</property>
     162    <property name="label_edit">Ca Score</property>
     163    <property name="readonly_layout_modes">
     164    </property>
     165    <property name="hidden_layout_modes"/>
     166    <property name="hidden_readonly_layout_modes"/>
     167    <property name="min_value">1</property>
     168    <property name="max_value">100</property>
     169  </widget> 
     170
    155171  <widget name="grade" meta_type="Select Widget">
    156172    <property name="title">Grade</property>
  • WAeUP_SRP/unilorin/profiles/default/layouts/student_course_result.xml

    r3609 r3628  
    8181  <property name="hidden_readonly_layout_modes"/>
    8282 </widget>
     83 <widget name="cascore" meta_type="Int Widget">
     84  <property name="title">Continuous Assessment Score</property>
     85  <property name="fields">
     86   <element value="cascore"/>
     87  </property>
     88  <property name="label">Continuous Assessment Score</property>
     89  <property name="label_edit">Continuous Assessment Score</property>
     90  <property name="readonly_layout_modes">
     91  </property>
     92  <property name="hidden_layout_modes"/>
     93  <property name="hidden_readonly_layout_modes"/>
     94 </widget>
    8395 <widget name="title" meta_type="String Widget">
    8496  <property name="title">Original Course Title</property>
     
    106118  </row>
    107119  <row>
     120   <cell name="cascore"/>
     121  </row> 
     122  <row>
    108123   <cell name="core_or_elective "/>
    109124  </row>
  • WAeUP_SRP/unilorin/profiles/default/schemas/import_course_result.xml

    r3234 r3628  
    1010 <field name="credits" meta_type="CPS Int Field"/>
    1111 <field name="score" meta_type="CPS String Field"/>
     12 <field name="cascore" meta_type="CPS String Field"/>
    1213 <field name="grade" meta_type="CPS String Field"/>
    1314 <field name="carry_over" meta_type="CPS Boolean Field"/>
  • WAeUP_SRP/unilorin/profiles/default/schemas/student_course_result.xml

    r2612 r3628  
    1111 <field name="status" meta_type="CPS String Field"/>
    1212 <field name="passmark" meta_type="CPS Int Field"/>
     13 <field name="cascore" meta_type="CPS Int Field"/>
    1314</object>
  • WAeUP_SRP/unilorin/waeup_custom/getStudyLevelInfo.py

    r3476 r3628  
    8585
    8686max_credits = 58
    87 info['without_score'] = without_score = False
    88 
     87info['without_score'] = False
     88info['without_cascore'] = False
    8989
    9090
  • WAeUP_SRP/unilorin/waeup_custom/getTranscriptInfo.py

    r3620 r3628  
    5454
    5555year_counter = 0
     56cgpa = 0
     57c_total_credits = 0
    5658for year in year_courses:
    5759    gpa = 0
     
    6163            gpa += int(course['weight']) * int(course['credits'])
    6264            total_credits += int(course['credits'])
     65    cgpa += gpa
     66    c_total_credits += total_credits
    6367    if gpa and total_credits:
    6468        year_details[year_counter]['total_credits'] = total_credits
     
    6670    else:
    6771        year_details[year_counter]['total_credits'] = 0
    68         year_details[year_counter]['gpa'] = 0   
     72        year_details[year_counter]['gpa'] = 0
     73
     74    if cgpa and c_total_credits:
     75        year_details[year_counter]['c_total_credits'] = c_total_credits
     76        year_details[year_counter]['cgpa'] = "%4.2f" % (float(cgpa)/int(c_total_credits))
     77    else:
     78        year_details[year_counter]['c_total_credits'] = 0
     79        year_details[year_counter]['cgpa'] = 0
     80
    6981    year.sort(cmp=lambda x,y: cmp("%(semester)s%(code)s" % x,
    7082                                         "%(semester)s%(code)s" % y))
  • WAeUP_SRP/unilorin/waeup_custom/transcript_view.pt

    r3620 r3628  
    7373        <table>
    7474          <tr tal:condition="details/total_credits" >
    75             <th>Total Credits:</th>
     75            <th width='200pt'>Total Credits:</th>
    7676            <td tal:content="details/total_credits" />
    7777          </tr>
     
    8080            <td><span tal:content="details/gpa" /></td>
    8181          </tr>
     82          <tr>
     83            <th>Cumulative Total Credits:</th>
     84            <td tal:content="details/c_total_credits" />
     85          </tr>
     86          <tr tal:condition="details/cgpa">
     87            <th>CGPA:</th>
     88            <td><span tal:content="details/cgpa" /></td>
     89          </tr>         
    8290        </table>     
    8391
Note: See TracChangeset for help on using the changeset viewer.