[Zope] parameters to dtml docs and methods?

Dieter Maurer dieter@handshake.de
Thu, 9 May 2002 20:38:03 +0200


Dennis Allison writes:
 > Suppose I have two DTML documents and/or methods, method A and method B.  
 > Method A Creferences Method B --
 > 
 > Method A:
 >         ...
 > 	<dtml-var name="B">  
 >         ...
 > 
 > which causes B to be published and it's "value" incorporated into A. 
 > 
 > Now, suppose there are some variables in A's namespace and further 
 > suppose that they are needed in method B.  The question is how to 
 > pass them from A to B.  What is the proper syntax?  
You simply do nothing. It happens automatically.

See the "Name lookup" section of

  <http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html>

to understand the DTML namespace.


Dieter