[Zope] calling script with parameters

J Cameron Cooper jccooper at jcameroncooper.com
Fri Feb 20 17:48:45 EST 2004


Martin Herceg wrote:

>can anybody help with this problem?
>i try serch in zope maling list but without succes
>
>i will call object 
>for example some python script with few parameters
>i try this 
><span tal:content="here/nameOfObject(Param1=5,Param2=3)">content</span>
>and zope return this
>Error Type: KeyError
>Error Value: select()
>where is problem?
>  
>
One problem is that you're mixing calling syntaxes. The TALES path 
syntax doesn't accept parameters. If you want to do that you must use 
the 'python:' declaration to do it in Python (dotted) syntax.

          --jcc

-- 
"He who fights with monsters should look to it that he himself does not become a monster. And when you gaze long into an abyss the abyss also gazes into you."




More information about the Zope mailing list