Hi Oliver, Thanks for the response. This is putting me on the right path, but it's not quite what I need. If I navigate to the URL http://www.whateverserver.com:8080/bob and the method or script named 'bob' doesn't exist, I want to be able to trap that and look up some values in a database. I tried replacing the index_html DMTL method with a Python script and it doesn't get called if I navigate to the URL shown above. I guess I sort of need a traversal hook of some sort -- I've been digging in the source to figure out how to do this, but have come up empty so far. Any other ideas? Thanks very much, Kevin -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Oliver Bleutgen Sent: Thursday, June 13, 2002 10:19 AM To: Kevin Carlson Cc: zope group Subject: Re: [Zope] Monitoring transversal Kevin Carlson wrote:
Hi all,
I have a situation where I need to be able to handle a URL like http://www.xxx.com:8080/<arg> where <arg> is somehow trapped by a python script. I know this type of thing can be done with a ZSQL method to pass in a single argument, but I am not aware of how to do this otherwise. Any ideas on how to do this?
Thanks,
Kevin
Take a look at the bindings tab of your python script. There you'll find "subpath", think this is what you want. cheers, oliver _______________________________________________ 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 )