This was responded in another mail

try:

session.flash instead of response.flash

2011/2/25 SergeyPo <[email protected]>

> Hello everyone!
>
> I want to do something like:
>
> def selector():
>    try:
>        x = db.headers[request.vars.ID]
>        if x is None:
>            response.flash = T('ID incorrect')
>            redirect(URL(r=request, f='index',
> args=(request.args[1])))
>    except:
>        response.flash = T('ID incorrect')
>        redirect(URL(r=request, f='headers', args=(request.args[1])))
>
> response.flash does not keep its value when you redirect. Is it
> possible to fix or workaround?
>
> Sergey




-- 
Pablo Martín Mulone ([email protected])
http://www.tecnodoc.com.ar/
Paraná, Entre Ríos, Argentina (CP 3100).

My blog: http://martin.tecnodoc.com.ar
Expert4Solution Profile:
http://www.experts4solutions.com/e4s/default/expert/6

Reply via email to