[Zope] How to convert the url to parameter

Dieter Maurer dieter@handshake.de
Fri, 28 Dec 2001 17:37:37 +0100


Terry writes:
 > Probably it's a dummy question. But I just don't know how-to.
 > Does any one know to convert the url to parameter.
 > 
 > For example:
 > 
 > http://somehost/parse/db_name/table_name/some_field_name/condition
 > 
 > I would like to write a python script or dtml-method named "parse" to
 > grab the record from  database.
If you implement your "parse" with a Python Script, then you
can bind (--> "Bindings" tab) the "traverse_subpath".
When you do this (its bound by default), then this bound variable
contains the remaining URL components as a list of URL path fragments.


Dieter