Mercurial > p > roundup > code
diff roundup/cgi/templating.py @ 5947:33914dd1160f
Retired and Restored were unhandled by history.
Handle them properly without the scary message. Also make the message
report the action that caused the problem.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Wed, 23 Oct 2019 13:31:53 -0400 |
| parents | a2a7860502fa |
| children | fe334430ca07 |
line wrap: on
line diff
--- a/roundup/cgi/templating.py Wed Oct 23 12:55:59 2019 -0400 +++ b/roundup/cgi/templating.py Wed Oct 23 13:31:53 2019 -0400 @@ -1153,11 +1153,16 @@ arg_s = '<br />'.join(cell) else: - # unkown event!! - comments['unknown'] = self._( - "<strong><em>This event is not handled" - " by the history display!</em></strong>") - arg_s = '<strong><em>' + str(args) + '</em></strong>' + if action in ( 'retired', 'restored' ): + # args = None for these actions + pass + else: + # unknown event!! + comments['unknown'] = self._( + "<strong><em>This event %s is not handled" + " by the history display!</em></strong>"%action) + arg_s = '<strong><em>' + str(args) + '</em></strong>' + date_s = date_s.replace(' ', ' ') # if the user's an itemid, figure the username (older journals # have the username)
