[Zope] Accessing pythonscripts in different branch

Ria Marinussen marinus@cs.utwente.nl
Tue, 25 Mar 2003 14:35:01 +0100


Hi Geir,

thanks for your help... I tried this but got an error.=20
And therefor thought this sollution was incorrect, and tried different
things with seemingly the same error...

Now I noticed that the error I got was from another call to the script =
(in
the root - but it was moved).
So I was looking at the wrong place...=20

Another *blush* moment...

Ria


> -----Original Message-----
> From: Geir B=E6kholt [mailto:lists@elvix.com]
> Sent: Tuesday, March 25, 2003 12:35 PM
> To: Ria Marinussen on The Zope Mailinglist
> Cc: Zope mailinglist
> Subject: Re: [Zope] Accessing pythonscripts in different branch
>=20
>=20
> On  Tue, 25 Mar 2003 12:27:24 +0100 GMT (..12:27 where i live(GMT+1) =
)
> Ria Marinussen asked the Zope mailinglist about the following:
> RM> On my zope site I use some pythonscripts. I don't like=20
> them to be in the
> RM> root of my site, but can't figure out how to access them=20
> when they'r not in
> RM> the root.
> ...
> RM> I use a python script for that by including it in my
> RM> standard_dtml_header file like this:
> RM> <dtml-var expr=3D"topmenu('branch1')">
> ...
> RM> Is it possible to move this script to a folder "scripts"=20
> and access the
> RM> script on every page in my website? (How?)
>=20
> <dtml-var expr=3D"scripts.topmenu('branch1')">
> everything inside expr=3D"" is evaluated as a python expression
>=20
> if you are not using expr=3D"", the following should also work
> (although not with the explicit paramter-passing):
> <dtml-with scripts>
>     <dtml-var topmenu>
> </dtml-with>
>=20
>=20
> --
> Geir B=E6kholt
>=20