[Zope] MVC and Zope
Dieter Maurer
dieter@handshake.de
Mon, 17 Feb 2003 19:44:55 +0100
Kevin Carlson wrote at 2003-2-16 17:46 -0500:
> ...
>
> If you use a python script as your controller and read necessary
> configuration information from the traverse_subpath binding, you could
> set up a table of target dtml documents (or methods), add the necessary
> model elements to the request and pass the entire thing off the the view
> for processing. This works great in java, but because of the way that
> acquisition is handled in scripts, it seems to be an issue in Zope,
> although I am certain there is a way to code around the limitations.
The standard way would be to use "RESPONSE.setBase" to
tell the browser about the "correct" base url.
A better way would be to avoid relative URLs (which may become
spider traps, too).
Dieter