[Zope] ZPT: defining a universal variable.

Dieter Maurer dieter@handshake.de
Fri, 17 Jan 2003 21:43:36 +0100


Alec Munro wrote at 2003-1-16 15:20 -0400:
 > I have a situation where I have a script that I want to be able to 
 > reference from anywhere, with putting in the full path. The problem is, 
 > many of the places I need to use this script (it converts a number into 
 > a properly formatted currency(english only, right now), are in files 
 > that are loaded from other files which are loaded from other files.
 > Here's a tree view of how I might need to use this script
 > 
 > -index
 > |_main_body
 >   |_content_area
 >     |_summary_box
 >        |_call to currency script
 > 
 > My question is where do I define the variable so that I can use it 
 > anywhere? I get errors if I define it anywhere except the page template 
 > that is using it.
 > 
 > 
 > I hope this is clear.
Not completely.

Trying: put your script in the root folder, then it will
be accessible from anywhere by acquisition.


Dieter