[Zope] Newbie question

gpgreen@olywa.net gpgreen@olywa.net
Fri, 21 Apr 2000 23:33:16 -0700


On Sat, Apr 22, 2000 at 04:04:58PM +1000, Malcolm Tredinnick wrote:
> The syntax you want, if I've understoof the question, is (untested):
> 	<dtml-var "the_other_dtml_method(_['sequence-item'])">
> 
> You need to do it this way because the stuff inside the quotes is a python
> expression and hyphens are not permitted in Python variable names. So you use
> the magical _ namespace, which contains things like sequence-item as a key.

Very nice. Now how do I reference the variable in the_other_dtml_method? I 
assume it is in the other methods namespace, but what name does it have?

-- 
Greg Green
e-mail: gpgreen@olywa.net
http://www.olywa.net/gpgreen/