The flash message is stored in response.flash. There are a few web2py 
operations that automatically set that. The actually flashing is handled by 
JS on the client side (in web2py_ajax.js).

Anthony

On Monday, December 5, 2011 11:32:22 AM UTC-5, Constantine Vasil wrote:
>
> 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.
>
>
>

Reply via email to