Ignore:
Timestamp:
23 Feb 2017, 14:22:19 (8 years ago)
Author:
Henrik Bettermann
Message:

Take outstanding courses into consideration.

Location:
main/waeup.aaue/trunk/src/waeup/aaue/students
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/students/browser_templates/studyleveleditpage.pt

    r14534 r14576  
    1919      <th i18n:translate="">Credits</th>
    2020      <th i18n:translate="">CO</th>
     21      <th i18n:translate="">OS</th>
    2122    </tr>
    2223  </thead>
     
    3738      <td tal:content="value/credits">CREDITS</td>
    3839      <td tal:content="value/carry_over">CO</td>
     40      <td tal:content="value/outstanding">OS</td>
    3941    </tr>
    4042  </tbody>
  • main/waeup.aaue/trunk/src/waeup/aaue/students/browser_templates/studylevelmanagepage.pt

    r14534 r14576  
    4848            <th i18n:translate="">CA</th>
    4949            <th i18n:translate="">CO</th>
     50            <th i18n:translate="">OS</th>
    5051            <th i18n:translate="">Auto</th>
    5152          </tr>
     
    6970            <td tal:content="value/ca|nothing">CA</td>
    7071            <td tal:content="value/carry_over">CO</td>
     72            <td tal:content="value/outstanding">OS</td>
    7173            <td tal:content="value/automatic">AUTO</td>
    7274          </tr>
  • main/waeup.aaue/trunk/src/waeup/aaue/students/browser_templates/studylevelpage.pt

    r14453 r14576  
    3232      <th i18n:translate="" tal:condition="view/show_results" >Grade</th>
    3333      <th i18n:translate="">CO</th>
     34      <th i18n:translate="">OS</th>
    3435      <th i18n:translate="">Auto</th>
    3536    </tr>
     
    5051      <td tal:condition="view/show_results" tal:content="value/grade|nothing">GRADE</td>
    5152      <td tal:content="value/carry_over">CO</td>
     53      <td tal:content="value/outstanding">OS</td>
    5254      <td tal:content="value/automatic">AUTO</td>
    5355    </tr>
     
    5557</table>
    5658
     59<p i18n:translate="">
     60  CO: Carry-over course<br />
     61  OS: Outstanding course<br />
     62  Requ.: Required course<br />
     63  Auto: Automatically created course ticket
     64</p>
     65
    5766<div i18n:domain="waeup.kofa"
    5867  tal:condition="python: not len(context.keys())" i18n:translate="">
  • main/waeup.aaue/trunk/src/waeup/aaue/students/studylevel.py

    r14537 r14576  
    4848        total = 0
    4949        for ticket in self.values():
    50             if ticket.semester == 1:
     50            if ticket.semester == 1 and not ticket.outstanding:
    5151                total += ticket.credits
    5252        return total
     
    5656        total = 0
    5757        for ticket in self.values():
    58             if ticket.semester == 2:
     58            if ticket.semester == 2 and not ticket.outstanding:
    5959                total += ticket.credits
    6060        return total
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py

    r14571 r14576  
    123123        self.assertEqual(
    124124            self.student['studycourse']['100'].cumulative_params[0], 5.4)
    125         self.assertEqual(self.student['studycourse']['100'].gpa, 4.3)
     125        self.assertEqual(self.student['studycourse']['100'].gpa, '4.30')
    126126        self.student['studycourse'].imported_cgpa = 6.6
    127127        self.assertEqual(
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_export.py

    r14442 r14576  
    144144            'validated_by,validation_date,'
    145145            'student_id,matric_number,number_of_tickets,certcode,cgpa\r\n'
    146             '0.0,,,100,2012,A,100,,,,,A111111,234,1,CERT1,0.0\r\n'
     146            '0.00,,,100,2012,A,100,,,,,A111111,234,1,CERT1,0.0\r\n'
    147147            )
    148148        return
     
    167167            result,
    168168            'automatic,ca,carry_over,code,credits,dcode,fcode,level,level_session,'
    169             'mandatory,passmark,score,semester,title,student_id,certcode,'
     169            'mandatory,outstanding,passmark,score,semester,title,student_id,certcode,'
    170170            'display_fullname,matric_number\r\n'
    171             '1,,1,CRS1,100,DEP1,FAC1,100,2012,0,100,,2,Course 1,A111111,CERT1,'
     171            '1,,1,CRS1,100,DEP1,FAC1,100,2012,0,0,100,,2,Course 1,A111111,CERT1,'
    172172            '"TESTER, Anna M.",234\r\n'
    173173            )
Note: See TracChangeset for help on using the changeset viewer.