[Zope] dtml forwarding request
Jonathan
dev101 at magma.ca
Thu Jun 8 16:41:00 EDT 2006
If you are using a zeo server and both server are zeo clients you could store the info on the zeo server, then do a redirect from serverA/methodA to serverB/methodB.
If the servers do not have access to the same zeo server, then you are going to have to 'package-up' all the variables you need and send them to serverB/methodB
Depending on what is happening in serverB/methodB you could just do some kind of rpc from serverA/methodA to serverB/methodB (ie. methodA just sends a request to methodB, which does some processing and sends the results back to methodA for final processing/display).
It's kind of hard to guess what would be best without knowing more about the application(s).
Jonathan
----- Original Message -----
From: Alric Aneron
To: Jonathan ; zope at zope.org
Sent: Thursday, June 08, 2006 4:31 PM
Subject: Re: [Zope] dtml forwarding request
The dtml_method where I want to forward to is on another server, so your may would be a little hard to do. Sorry, I didn't make myself clear the first time.
Thanks, any suggestions?
Jonathan <dev101 at magma.ca> wrote:
if you want to go straight from one dtml routine to another just use dtml-var (ie. have dtml method A call dtml method B) - then in dtml method A have:
<dtml-var methodB>
This will 'pass' control and the REQUEST space from A to B.
Is this is not what you are looking for, then provide some more info as to your use case.
Jonathan
----- Original Message -----
From: Alric Aneron
To: zope at zope.org
Sent: Thursday, June 08, 2006 4:22 PM
Subject: [Zope] dtml forwarding request
Hello,
Is there a way in Zope to forward a request from one page to another. When I say "forward" a request, I want to retain all the GET and POST request parameters. So similar to <dtml-call expr="RESPONSE.redirect('...')"> but response.redirect loses all the request parameters.
I've been looking around and couldn't find it.
Any ideas?
Thanks in advance!
--------------------------------------------------------------------------
Yahoo! Groups gets better. Check out the new email design. Plus there�s much more to come.
--------------------------------------------------------------------------
_______________________________________________
Zope maillist - Zope at zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )
------------------------------------------------------------------------------
Sneak preview the all-new Yahoo.com. It's not radically different. Just radically better.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20060608/d8be1722/attachment.htm
More information about the Zope
mailing list