Changeset 9691 for main/waeup.uniben/trunk/src
- Timestamp:
- 20 Nov 2012, 06:36:54 (12 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben/students
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/browser_templates/studylevelpage.pt
r9688 r9691 15 15 </tr> 16 16 </tal:block> 17 <tr>18 <td i18n:translate="">19 Total Credits:20 </td>21 <td>22 <span tal:replace="view/context/total_credits">TOTAL</span>23 </td>24 </tr>25 <tr>26 <td i18n:translate="">27 Momentary GPA:28 </td>29 <td>30 <span tal:replace="python: '%4.2f' % view.context.gpa">2.33</span>31 </td>32 </tr>33 17 </tbody> 34 18 </table> -
main/waeup.uniben/trunk/src/waeup/uniben/students/studylevel.py
r8865 r9691 38 38 grok.provides(ICustomStudentStudyLevel) 39 39 40 CustomStudentStudyLevel = attrs_to_fields(CustomStudentStudyLevel) 40 CustomStudentStudyLevel = attrs_to_fields( 41 CustomStudentStudyLevel, omit=['total_credits', 'gpa']) 41 42 42 43 class CustomStudentStudyLevelFactory(StudentStudyLevelFactory): -
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py
r9688 r9691 345 345 self.browser.getLink("100").click() 346 346 # GPA has been properly calculated and is shown on the page 347 self.assertTrue('3.0 0' in self.browser.contents)347 self.assertTrue('3.0' in self.browser.contents) 348 348 self.assertEqual(self.student['studycourse']['100'].gpa, 3.0) 349 349 # Score is not shown but grade
Note: See TracChangeset for help on using the changeset viewer.