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@zope.org 
  Sent: Tuesday, December 12, 2006 1:48 PM
  Subject: [Zope] Re: Preserving Context


  From: Jonathan <[EMAIL PROTECTED]>
   
  >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@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 )
_______________________________________________
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 )

Reply via email to