Hi, How can i add an STX file from a pagetemplate?? the following doesn't work. <p tal:content="structure stxfile" /> Greets, Daniel
... tal:content="structure python: modules['Products.PythonScripts.standard'].structured_text(getattr(here, stx_file))" -aj --On Donnerstag, 10. April 2003 18:03 Uhr +0200 Daniël Hooymans <d.hooymans@edufocus.nl> wrote:
Hi,
How can i add an STX file from a pagetemplate??
the following doesn't work.
<p tal:content="structure stxfile" />
Greets, Daniel
On Thu, Apr 10, 2003 at 06:03:57PM +0200, Dani?l Hooymans wrote:
Hi,
How can i add an STX file from a pagetemplate??
the following doesn't work.
<p tal:content="structure stxfile" />
Greets, Daniel
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
participants (3)
-
Andreas Jung -
Daniël Hooymans -
Jim Penny