Changeset 9255


Ignore:
Timestamp:
28 Sep 2012, 10:28:16 (12 years ago)
Author:
Henrik Bettermann
Message:

level_session must also be saved when an officers adds a studylevel.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py

    r9252 r9255  
    807807        studylevel = createObject(u'waeup.StudentStudyLevel')
    808808        studylevel.level = int(level_code)
     809        studylevel.level_session = self.context.current_session
    809810        try:
    810811            self.context.addStudentStudyLevel(
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py

    r9252 r9255  
    659659        self.browser.getControl("Add study level").click()
    660660        self.assertMatches('...<span>100</span>...', self.browser.contents)
     661        self.assertEqual(self.student['studycourse']['100'].level, 100)
     662        self.assertEqual(self.student['studycourse']['100'].level_session, 2004)
    661663        self.browser.getControl("Add study level").click()
    662664        self.assertMatches('...This level exists...', self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.