session.flash = "message"

On this note, I would almost like to suggest a patch to the usage of
response.flash. Currently it is just a string, however I suggest that
we make it standard to use it as a list. Several times I have had my
response.flash overwritten by either a plug-in or my own when I assign
it twice. I think it makes much more sense to.

response.flash.append('message')

and then in the view

for msg in response.flash:
   <div class='flash'>{{msg}}</div>

--
Thadeus





On Wed, Apr 28, 2010 at 11:30 AM, annet <[email protected]> wrote:
> In one of my functions I redirect the user to another function. I
> would like to notify the user that he has been redirect by setting a
> flash message, the problem is the args in the url. This is the
> function:
>
> if
> request==URL(r=request,a='crm',c='clublocatormail',f='update_form'):
>        response.flash='message'
>
> An example of request would be: 
> http://www.fitwise.nl/crm/clublocatormail/update_form/1/1
>
> Is there a way to get rid of the args in the request? Right now the if
> will never be true.
>
>
> Kind regards,
>
> Annet.
>

Reply via email to