[Zope] dtml forwarding request

Tino Wildenhain tino at wildenhain.de
Thu Jun 8 17:39:19 EDT 2006


Alric Aneron wrote:
> So there is no way to do it through python and DTML?
> 
> I know Java has something like that.

*lol*

Well you should be sure you know what you do anyways.
Forwarding requests means you trust the users browser
to do the right thing. Maybe you can instead make
a subrequest by means of urllib and friends.

Construct url (e.g. GET-parameters) is easy:

in a python script:

from ZTUtils import make_query

targeturl="http://other.server/script?"+make_query(**context.REQUEST.form)

(untested) should work.

To construct form elements there is a similar function in ZTUtils, but
I dont remember the name w/o looking at the source.

Regards
Tino Wildenhain


More information about the Zope mailing list