Re: calling a python script from ZPT

David Pratt <[email protected]> Sat, 02 Jul 2005 19:27:38 -0300
Newsgroups gmane.comp.web.zope.page-templates
Message-ID <[email protected]>
Hi Ken. One easy solution is to put your scripts in your own skins 
folder or in the custom folder
and they are available anywhere in your app.  I think this is covered 
in the plone book somewhere,
maybe under customization.

Regards,
David

On Friday, July 1, 2005, at 10:18 AM, Kenneth Gonsalves wrote:

> hi
> i have a python script called getnames
> i call it like this
> <p tal:repeat="results python:context.getnames(table=tablename)">
>
> now this script is in ploneroot/mainpage
>
> if i call this from the mainpage folder or any sub folder there is no
> problem. But i want to call it from somewhere else in the site
>
> i tried:
> python:${plone_url}.mainpage.getnames()
> and
> python:${plone_url}/mainpage/getnames()
>
> but both dont compile - any clues?
> -- 
> regards
> kg
>
> http://www.livejournal.com/users/lawgon
> tally ho! http://avsap.org.in
> ಇಂಡ್ಲಿನಕ್ಸ வாழ்க!
> _______________________________________________
> ZPT mailing list
> [email protected]
> http://mail.zope.org/mailman/listinfo/zpt
>

_______________________________________________
ZPT mailing list
[email protected]
http://mail.zope.org/mailman/listinfo/zpt