28 Oct
2002
28 Oct
'02
8:28 p.m.
Mark Gibson writes:
I define a variable in a tag, and try and use it in a contained tag, and get a NameError on that variable. Can anyone help me understand why? The snippet of code is below:
<html metal:use-macro="here/GetTemplate" tal:define="objs here/regionObjects; num_objs python:objs[0] "> TAL attributes on a metal "use-macro" tag are ineffective (as the complete tag is replaced by the macro, including the TAL attributes.
Dieter