[Zope] need help

Casey Duncan casey at zope.com
Thu Jan 22 16:56:30 EST 2004


On Thu, 22 Jan 2004 13:49:22 -0800 (PST)
Alexander <aleksandrmailbox at yahoo.com> wrote:

> Hi All,
> I have all pages in root folder and script in scripts
> folder. how can I call this script?
> 
> test2.html page:
> ============
> <span metal:use-macro="container/main/macros/body">
> <span metal:fill-slot="bodyplace">
> <span
> metal:use-macro="container/main/macros/searchform"></span>
> </span>
> </span>
> 
> searchform macro:
> ============
> <table width=100% metal:define-macro="searchform">
> <tr>
> <td tal:content="python: scripts.validateForm1()" >
> </td>
>                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^???
> </tr>
> <tr><td>
> <form action=test2.html method=post>
> <input type=text name=searchstring>
> <input type=submit>
> </form>
> </td></tr>
> </table>
> 
> how can I call validateForm script from scripts
> folder?
> tal:content="python: scripts.validateForm1() and
> tal:content="python: here.scripts.validateForm1()-
> doesnt work . I think I've tried all possible
> combinations, but no luck.
> if pages and script in the same folder
> -tal:content="python: here.validateForm1()- works.

try: 
  tal:content="here/scripts/validateForm1"

That will acquire the scripts folder from the current object.

hth,

-Casey



More information about the Zope mailing list