RE: [Zope] STX in pagetemplates
10 Apr
2003
10 Apr
'03
5:02 p.m.
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
8397
Age (days ago)
8397
Last active (days ago)
0 comments
1 participants
participants (1)
-
Daniël Hooymans