I found 
<div class="flash">{{=response.flash or ''}}</div>

in layout.html and commented it out. No more flashes. Thanks.

On Monday, December 30, 2013 12:34:12 PM UTC-6, Anthony wrote:
>
> If you generally don't want flash messages, you can remove the 
> response.flash code from layout.html. If you want to prevent specific 
> messages, you can do so via the arguments to SQLFORM. For Auth messages, 
> you can do things like:
>
> auth.messages.logged_in = None
>
> SQLFORM and Auth set the messages via response.flash or session.flash (in 
> case a redirect is being done), so you can also do something like:
>
> response.flash = session.flash = None
>
> any time after the SQLFORM or Auth code has run (but before the function 
> returns and the view is executed).
>
> Anthony
>
> On Monday, December 30, 2013 3:31:51 AM UTC-5, Keith Planer wrote:
>>
>> How do I keep session.flash and response.flash from doing their things 
>> when I don't want to? Specifically I don't want the messages popping up 
>> after a user logs in or when they make a new entry to the DB.
>>
>

-- 
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/groups/opt_out.

Reply via email to