Changeset 15419 for main/waeup.kofa
- Timestamp:
- 21 May 2019, 10:22:39 (5 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/batching.py
r15418 r15419 170 170 if 'state' in row: 171 171 parent.logger.info('%s - Student record created' % obj.student_id) 172 history = IObjectHistory(obj)173 history.addMessage(_('Student record created'))174 172 return 175 173 -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r15418 r15419 378 378 notify(grok.ObjectModifiedEvent(student)) 379 379 history = IObjectHistory(student) 380 history.addMessage("S et to 'graduated'")380 history.addMessage("State 'graduated' set") 381 381 self.flash(_('Graduated student record created.')) 382 382 self.redirect(self.url(self.context[student.student_id], 'index')) -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r15418 r15419 445 445 self.assertEqual(self.app['students']['K1000001'].state, 'graduated') 446 446 self.browser.open("http://localhost/app/students/K1000001/history") 447 self.assertTrue("S et to 'graduated'by Manager" in self.browser.contents)447 self.assertTrue("State 'graduated' set by Manager" in self.browser.contents) 448 448 return 449 449
Note: See TracChangeset for help on using the changeset viewer.