Yes, session.flash can be HTML -- you can use web2py HTML helpers or put 
raw HTML code inside XML(), and it should be rendered properly. 

session.flash = A('click me', _href=URL(...))

or

session.flash = XML('<a href="%s">click me</a>' % URL(...))

The problem with including a link, though, is that using the current 
scaffolding app and web2py.js, clicking on the flash message causes it to 
hide, but the click won't register on the link. You would probably have to 
hack web2py.js or otherwise add some JS code to override the flash click 
handler in order to avoid that behavior.

Anthony

On Tuesday, August 28, 2012 7:15:26 PM UTC-4, czamb wrote:
>
> Is it possible to get some html content into the session.flash message?
> I would like to include an "undo" link for a delete action. 
> Could also be nice to easily access newly created content.
> Thank you.
>

-- 



Reply via email to