[ZPT] call a script

Jeff Peterson jpeterso at rangebroadband.com
Thu Sep 25 12:07:36 EDT 2003



> -----Original Message-----
> From: zpt-bounces at zope.org [mailto:zpt-bounces at zope.org]On Behalf Of Bob
> Gailer
> Sent: Thursday, September 25, 2003 10:54 AM
> To: Fred L. Drake, Jr.
> Cc: zpt at zope.org
> Subject: Re: [ZPT] call a script
> 
> 
> At 09:12 AM 9/25/2003, Fred L. Drake, Jr. wrote:
> 
> 
> >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"



tal:repeat="n python:container.get(arg1=parm1)"



> 
> Yes that works, but how do I pass parameters?
> 
> Bob Gailer
> bgailer at alum.rpi.edu
> 303 442 2625
> 



More information about the ZPT mailing list