RE: [Zope] Accessing pythonscripts in different branch
Hi Geir, thanks for your help... I tried this but got an error. 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... Another *blush* moment... Ria
-----Original Message----- From: Geir Bækholt [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
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 them to be in the RM> root of my site, but can't figure out how to access them 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="topmenu('branch1')"> ... RM> Is it possible to move this script to a folder "scripts" and access the RM> script on every page in my website? (How?)
<dtml-var expr="scripts.topmenu('branch1')"> everything inside expr="" is evaluated as a python expression
if you are not using expr="", the following should also work (although not with the explicit paramter-passing): <dtml-with scripts> <dtml-var topmenu> </dtml-with>
-- Geir Bækholt
participants (1)
-
Ria Marinussen