[ZPT] calling a python script from ZPT

David Pratt fairwinds at eastlink.ca
Sat Jul 2 18:27:38 EDT 2005

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.


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
> ZPT at zope.org
> http://mail.zope.org/mailman/listinfo/zpt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1143 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zpt/attachments/20050702/f6385def/attachment.bin

More information about the ZPT mailing list