2 Oct
2004
2 Oct
'04
11:59 a.m.
On Sat, 2 Oct 2004 12:04:23 +0200, Hermann Himmelbauer <dusty@qwer.tk> wrote:
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".
You might want to use PATH_TRANSLATED or URL2 to acquire the path to the correct context and then restrictedTraverse it ... ... depending on what you want to achieve it might even make sense to do something like : http://mysite/folder1/custom_scripts/folder1/myscript which should probably fix the context to your taste, but then again I don't know what/how you're doing stuff in custom_scripts :) -- --- The Count