Hello,

I try to manage flash message properly with a bunch of related form 
components embeded into a web2py controller/page...

To me the best option would be to check if session.flash is empty and if so 
set a response.flash though this is not possible since session.flash seems 
to get cleared out before the load of components once the page reload...

Example:

elif form.errors:
        response.flash = 'form has errors'
else:
    if session.flash:
        # pass
        print session.flash  # Nothing
    else:
        response.flash = T('please fill the form')

This was just a test, but as said above session.flash seems always empty 
once there in the code execution.

Thanks

Richard

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to