[Zope] URL Traversal help needed.
Paul Zwarts
paz@oratrix.com
Thu, 16 Aug 2001 12:14:11 +0200
Greetings,
What you could do (there is probably a better way) is to evaluate the
REQUEST.steps to breakdown the full path at the '/' and then get the
item:
<dtml-with "_.getitem(REQUEST.steps[-1])"> -assuming this is opt
<dtml-call subopt>
</dtml-with>
Cheers,
Paz
-----Original Message-----
From: zope-admin@zope.org [mailto:zope-admin@zope.org] On Behalf Of
jkinsley
Sent: Thursday, August 16, 2001 12:01 PM
To: zope@zope.org
Subject: [Zope] URL Traversal help needed.
Greetings....
Assuming I have:
/folder/script
What do I need to implement within script so that I can call
http://www.mysite.com/folder/script/opt/subopt
then be able to use opt and subopt within script. I would like
opt/subopt to be split at the '/' and available as a tuple or a list.
TIA,
Jarrod
_______________________________________________
Zope maillist - Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )