[Zope] Accessing pythonscripts in different branch

Ria Marinussen marinus@cs.utwente.nl
Tue, 25 Mar 2003 12:27:24 +0100


Hi,

On my zope site I use some pythonscripts. I don't like them to be in the
root of my site, but can't figure out how to access them when they'r not in
the root.

For example the menu on top of my webpages is created depending on the main
branche of my site. I use a python script for that by including it in my
standard_dtml_header file like this:
<dtml-var expr="topmenu('branch1')">
 
The pythonscript "topmenu" is in the rootfolder of my site.

Is it possible to move this script to a folder "scripts" and access the
script on every page in my website? (How?)

(I could find ways of accessing/using pythonscripts from different locations
by URL in the Zope Book - feeding/vacinating hippos and stuff, but not in a
dtml-var)

Thanks,
Ria Marinussen