[Zope] Re: Preserving Context

Javier Subervi javier_subervi at yahoo.com
Tue Dec 12 13:16:57 EST 2006


752




From: Jonathan <dev101 at ...109>


>In your root folder you could have a script that 
accesses the ZCatalog which can >be called from any subfolder and can tell 
where it was called from... try the >following:  create a python script 
(tst) in your root folder that contains the >following code:

> 

>return str(traverse_subpath)



> 

>then invoke this script file as 
followings:

> 

>http:/your.web.site/tst


>http:/your.web.site/tst/folderA


>http:/your.web.site/tst/folderB/folderC

> 

>(substitute your own subfolders as required)



You're going to be disappointed, but whenever I substituted in any number of valid folders, I got the same result:

[]

an empty set!
TIA,
Javier








 
____________________________________________________________________________________
Any questions? Get answers on any topic at www.Answers.yahoo.com.  Try it now.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20061212/c1e1e142/attachment.htm


More information about the Zope mailing list