[Zope-CMF] Saving state with Zope???

Raphael Ritz r.ritz@biologie.hu-berlin.de
Wed, 19 Mar 2003 16:50:06 +0100


Braun Brelin wrote:

>Hello,
>
>I'm trying to do the following :
>
>
>>From URL A, redirect to URL B.  From URL B, redirect
>back to URL A.  
>
>Basically, I need to know how to save URL A so that my
>
>python script (or ZPT, whichever) located at URL B can
>redirect back to URL A.   
>
if this is from a form you could pass a hidden variable with the current URL
Otherwise you could append something like
<URL B>?came_from=<URL A>
in your redirect statement.

Raphael

>I've been looking at the
>Zope docs and ZopeLabs for some hints but I've come up
>empty.  I tried doing a request.set(URL A) before
>doing the redirect but that doesn't seem to work.  
>Apparently, the request variable gets re-set each time
>(which makes sense).  
>
>Anybody have any thoughts on how to do this? 
>
>Thanks, 
>
>Braun Brelin
>bbrelin@yahoo.com
>
>
>__________________________________________________
>Do you Yahoo!?
>Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
>http://platinum.yahoo.com
>
>_______________________________________________
>Zope-CMF maillist  -  Zope-CMF@zope.org
>http://mail.zope.org/mailman/listinfo/zope-cmf
>
>See http://collector.zope.org/CMF for bug reports and feature requests
>
>  
>