]> asedeno.scripts.mit.edu Git - bluechips.git/commit
Be sure flash messages are strings before displaying them.
authorEvan Broder <broder@mit.edu>
Sat, 27 Mar 2010 22:39:57 +0000 (18:39 -0400)
committerEvan Broder <broder@mit.edu>
Sat, 27 Mar 2010 22:39:57 +0000 (18:39 -0400)
commit8b1499d9b2f38ae41123d394229418acf1cbde88
treeaf4486c2836b7f20deb0fa0f94dac05e100e0eb5
parent2dc4b877da68e4e023b421c11554c243e780b04d
Be sure flash messages are strings before displaying them.

It seems that at least some recent versions of Mako don't convert
objects to strings before attempting to render them, leading to a
TypeError for things like flash messages, which are no objects and not
just strings.

Reported-by: João Felipe Santos <joao.eel@gmail.com>
bluechips/templates/base.mako