Changeset 11028 for main/waeup.kofa
- Timestamp:
- 1 Feb 2014, 11:02:29 (11 years ago)
- Location:
- main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/students/browser.py
r11025 r11028 2570 2570 emit_lock_message(self) 2571 2571 return 2572 code = self.context.current_level 2573 if code is None: 2574 self.flash(_('Your data are incomplete'), type="danger") 2575 self.redirect(self.url(self.context)) 2576 return 2572 2577 super(AddStudyLevelFormPage, self).update() 2573 2578 return … … 2584 2589 self.flash(_('This level exists.'), type="warning") 2585 2590 except RequiredMissing: 2586 self.flash(_('Your data are incomplete'), type=" warning")2591 self.flash(_('Your data are incomplete'), type="danger") 2587 2592 self.redirect(self.url(self.context)) 2588 2593 return -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/students/tests/test_browser.py
r11023 r11028 2361 2361 # Now students can add the current study level 2362 2362 self.browser.getLink("Study Course").click() 2363 self.student['studycourse'].current_level = None 2364 self.browser.getLink("Add course list").click() 2365 self.assertMatches('...Your data are incomplete...', 2366 self.browser.contents) 2367 self.student['studycourse'].current_level = 100 2363 2368 self.browser.getLink("Add course list").click() 2364 2369 self.assertMatches('...Add current level 100 (Year 1)...',
Note: See TracChangeset for help on using the changeset viewer.