[Zope] ZPT and traverse_subpath (Python Script)

Dieter Maurer dieter@handshake.de
Sat, 23 Feb 2002 14:06:01 +0100


Andreas Elvers writes:
 > is it possible to use traverse_subpath inside a python script,
 > that is called by a ZPT ?
In this case, the ZPT needs to bind "traverse_subpath".
Don't know whether it does. Is there a variable "traverse_subpath" in the ZPT
defined? (work for you to find out)

If it is, then you pass this variable explicitly to your python script.
If not, you need to wrap the ZPT call inside a Python Script.
This catches "traverse_subpath", passes it explicitly to
the ZPT which in turn passes it to the Python Script it calls.


Dieter