[Zope] Re: Preserving Context
Jonathan
dev101 at magma.ca
Tue Dec 12 13:53:30 EST 2006
The script routine doesn't have to be located in root. traverse_subpath is populated using the names of all subfolders that occur after the script file name in the URL. So if your URL is: http:/my.web.site/folderA/scriptA/folderB/folderC, then scriptA will receive a traverse_subpath variable (in REQUEST namespace) that contains ['folderB', 'folderC']. Note: this will not work if there are any other scripts, DMTL methods etc in the URL after 'scriptA'.
Jonathan
----- Original Message -----
From: Javier Subervi
To: zope at zope.org
Sent: Tuesday, December 12, 2006 1:48 PM
Subject: [Zope] Re: Preserving Context
From: Jonathan <dev101 at ...>
>What version of zope are you running? (I am running zope 2.9.2 on a linux box).
2.7.8
I didn't put it in 'root' since root isn't automatically called. I put it in a folder called 's' which is automatically called, then I also explicitly called it in the URL. Obviously, if the fn weren't found, Zope would have complained. It was in fact found.
TIA,
Javier
------------------------------------------------------------------------------
Any questions? Get answers on any topic at Yahoo! Answers. Try it now.
------------------------------------------------------------------------------
_______________________________________________
Zope maillist - Zope at zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20061212/08ea4439/attachment.htm
More information about the Zope
mailing list