13 Aug
2001
13 Aug
'01
8:54 p.m.
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)