Currently I think most of us use response.flash as a resort to give
all kinds of feedback. For example:
def foo():
form=SQLFORM(...)
if form.accepts(...):
if there_is_some_minor_issue:
response.flash='Warning: your input is unusual, but anyway the
data is accepted'
else:
response.flash='ok, data is accepted'
if form.errors:
response.flash='Something is wrong'
Now all flash message show up in an orange bar. Can we have some
extended flash to be shown in different color? For example,
response.flash_warn shows in yellow bar
response.flash_info shows in light green bar
response.flash_error shows in orange or even red bar
Perhaps session.flash should also support this proposal too?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---