[Zope] How to put my scripts into a custom folder (Acquisition
problems)
The Count
the.count at count0.dyndns.org
Sat Oct 2 07:59:36 EDT 2004
On Sat, 2 Oct 2004 12:04:23 +0200, Hermann Himmelbauer <dusty at 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
More information about the Zope
mailing list