Changeset 15419


Ignore:
Timestamp:
21 May 2019, 10:22:39 (6 years ago)
Author:
Henrik Bettermann
Message:

Change history message

Remove redundant history message. History message is already added by the event handler.

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  
    170170        if 'state' in row:
    171171            parent.logger.info('%s - Student record created' % obj.student_id)
    172         history = IObjectHistory(obj)
    173         history.addMessage(_('Student record created'))
    174172        return
    175173
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py

    r15418 r15419  
    378378        notify(grok.ObjectModifiedEvent(student))
    379379        history = IObjectHistory(student)
    380         history.addMessage("Set to 'graduated'")
     380        history.addMessage("State 'graduated' set")
    381381        self.flash(_('Graduated student record created.'))
    382382        self.redirect(self.url(self.context[student.student_id], 'index'))
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py

    r15418 r15419  
    445445        self.assertEqual(self.app['students']['K1000001'].state, 'graduated')
    446446        self.browser.open("http://localhost/app/students/K1000001/history")
    447         self.assertTrue("Set to 'graduated' by Manager" in self.browser.contents)
     447        self.assertTrue("State 'graduated' set by Manager" in self.browser.contents)
    448448        return
    449449
Note: See TracChangeset for help on using the changeset viewer.