[Zope] STX in pagetemplates

Daniël Hooymans d.hooymans@edufocus.nl
Thu, 10 Apr 2003 19:02:55 +0200


Hi,

Thanks for your reply. It did not work the first time. but using "here.stx_file" instead of "stx_file" did the trick.

Greets,

Daniel

> -----Original Message-----
> From: Jim Penny [mailto:jpenny@universal-fasteners.com]
> Sent: donderdag 10 april 2003 18:21
> To: zope@zope.org
> Subject: Re: [Zope] STX in pagetemplates
> 
> 
> I create a Script Python named stx_ps with parameter text and body:
> 
> from Products.PythonScripts.standard import structured_text
> 
> if not text:
>     return ''
> return structured_text(text)
> 
> 
> Then my pt looks like:
> <p tal:content="structure python:container.stx_ps(text=stxfile)">
> 
> Note the guard.  structured_text gets upset if there is no input.
> 
> Jim Penny