[Zope] 'IN' Atribute within as a python script parameter
J. Cameron Cooper
jccooper@rice.edu
Mon, 13 Aug 2001 15:54:09 -0500
>
>
>Im having some trouble trying to pass a atribute to a python script:
>
><dtml-in objectValues>
><dtml-var "pythonScript(sequence-length)"> -- I dont know how I can make it
>understand the 'sequence-item' as a parameter
></dtml-in>
>
>Thanks one more time for the help!
>
Due to the naming of the dtml-in variables, Python thinks you're trying
to do subtraction when you say 'sequence-item' or so in an expression.
You need to use one of::
_['sequence-item']
or::
<dtml-let sl=sequence-length>
<dtml-var "pythonScript(sl)">
</dtml-let>
--jcc
(questionable)