[Zope] assign REQUEST object to redirect?

Maciej Wisniowski maciej.wisniowski at coig.katowice.pl
Sat Sep 9 06:59:22 EDT 2006


>container.REQUEST.form['id'] = 1
>return context.index_html(container.REQUEST)
>
>
>then I have access to request/form/id within the page
>template index_html.
>
>Now I must redirect instead of returning like
>
>return
>container.REQUEST.RESPONSE.redirect('index_html')
>  
>
And what about session:

in first script:

container.REQUEST.SESSION.set('myid', 1)

and in the second script:

container.REQUEST.SESSION.get('myid', -1)

You may want to remove myid from session 
in the second script.

-- 
Maciej Wisniowski




More information about the Zope mailing list