[Zope] How to put my scripts into a custom folder (Acquisition problems)

Hermann Himmelbauer dusty at qwer.tk
Sat Oct 2 06:04:23 EDT 2004


Hi,
I am developing a simple Zope/Plone site and want to put custom scripts in a 
seperate folder, e.g. into /custom_scripts

But how can I now calling these scripts without losing the correct context?

If I e.g. want to call the script "/custom_scripts/myscript" from "/folder1" I 
have to write http://mysite/folder1/custom_scripts/myscript". The context of 
the script is then "/custom_scripts" which is bad as it loses the context of 
"folder1".

When I put the python scripts into the root folder, everything works as the 
context of "http://mysite/folder1/myscript" is then "/folder1" which was my 
intention.

I also don't completely understand it: Why is the context of the first example 
not "folder1/custom_scripts/"? Why does the context change to the container 
of the script?

Is there any good solution to this? Or should I really put all my python 
scripts into the root folder?

		Best Regards,
		Hermann

-- 
x1 at aon.at
GPG key ID: 299893C7 (on keyservers)
FP: 0124 2584 8809 EF2A DBF9  4902 64B4 D16B 2998 93C7


More information about the Zope mailing list