calling a python script from ZPT
Kenneth Gonsalves <[email protected]> Fri, 1 Jul 2005 18:48:12 +0530
| Newsgroups | gmane.comp.web.zope.page-templates |
|---|---|
| Message-ID | <[email protected]> |
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
ಇಂಡ್ಲಿನಕ್ಸ வாழ்க!