----- Original Message -----From: Javier SuberviTo: zope@zope.orgSent: Tuesday, December 12, 2006 1:16 PMSubject: [Zope] Re: Preserving Context752>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
Have a burning question? Go to Yahoo! Answers and get answers from real people who know.
_______________________________________________
Zope maillist - Zope@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 )