[controller] UndoController: fix output method (closes: #1776091)
Fix buggy direct output in `UndoController.publish()`.
Raise now a ValidationError instead of malformed string
Changes:
* raise ValidationError when an error occured in undo
* use the new message mechanism based on _cwmsgid
If errors are not fatal, you have to change publish() method.
Upstream Author:
%(author)s <%(author-email)s>
Copyright:
Copyright (c) %(year)s %(author)s.
%(author-web-site)s -- mailto:%(author-email)s