[ZPT] call a script

Fred L. Drake, Jr. fred at zope.com
Thu Sep 25 11:12:00 EDT 2003


Bob Gailer writes:
 > Can I use python: to call a script? I tried
 > 
 > tal:repeat="n python:container/get"
 > 
 > and get the error "global name get is not defined"

It looks like you're using a path expression rather than a Python
expression.  Try:

    tal:repeat="n container/get"


  -Fred

-- 
Fred L. Drake, Jr.  <fred at zope.com>
PythonLabs at Zope Corporation



More information about the ZPT mailing list