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