[Zope] calling python from template
Daniël Hooymans
d.hooymans@edufocus.nl
Wed, 20 Nov 2002 10:22:34 +0100
Hi,
Try using :
<p tal:content="python:here.listObjects('departments', 'priority')">content of listObjects </p>
I'm not sure why the 'here.' part must be specified. Anyone ??
Greetz,
Daniel
> -----Original Message-----
> From: David Bear [mailto:David.Bear@asu.edu]
> Sent: woensdag 20 november 2002 1:51
> To: zope@zope.org
> Subject: [Zope] calling python from template
>
>
> I want to call a python script from a page template but I
> don't know how to 'name' the script, ie I don't know how
> acquisition will find it.
>
> my script lives if /folderA/folderB
> by page templated list is /folderA/folderB/folderC
>
> I use <p tal:content="python:listObjects('departments',
> 'priority')">content of listObjects </p>
>
> to call the listObjects script in folderB -- but zope isn't
> finding it.
>
> what simple thing am I missing?
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>