27 Oct
2002
27 Oct
'02
8:23 p.m.
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] "> <div metal:fill-slot="body"> <table border="0" width="100%" tal:condition="python:num_objs > 11"
... Error Type: NameError Error Value: global name 'num_objs' is not defined