* Stephane Bortzmeyer <bortzmeyer@netaktiv.com> [2001-05-08 22:10]:
OK, the examples in the Zope Book (is there a better source of information?) do not mention it, they use parameters of the script.
In the final edition of the Zope Book, you can read this on page 127 (Chapter 8, "Advanced Zope Scripting"): |In addition to form variables, you can specify any request variables as |script parameters. For example, to get access to the request and |response objects just include REQUEST and RESPONSE in your list of |parameters. Request variables are detailed more fully in Appendix B.
##bind namespace=REQUEST
It's probably a bad idea to call the DTML namespace "REQUEST", because...
##bind script=script ##bind subpath=traverse_subpath ##parameters=beverage,RESPONSE,REQUEST
... your REQUEST is coming from here. Obviously you are not using the DTML name space object in your Python Script because it's overwritten (Correct English?) by your parameter with the same name. So you can leave the namespace line empty. Cheers, Nils