I made a flash messages enhancement with two levels 'info' and 'error'. I set up my layout.html to accept {{=flash_level}} and to make the flash message visually different for each case. It works when in my controller I set flash_level = 'info' and send it to the view.
web2py has many internal flash messages which appear at various occasions. Now the question is how I can know the type of the message and set it up the corresponding level in my variable flash_level. So to say is it possible to intercept the flash message and add this info on the fly? I can parse the content and add a my level.