
jeff.peterson at crary
Dec 29, 2008, 8:24 AM
Post #2 of 2
(906 views)
Permalink
|
Script (Python) has a feature called "traverse_subpath" (you can rename in under the "bindings" tab, but why?) that may do what you want. Given domain.com/[script name]/L-Fredericksburg/S-VA/C-Plumbing: request.traverse_subpath should contain ['L-Fredericksburg', 'S-VA', 'C-Plumbing'] There may be better ways to do this, but this popped immediately for me. -- Jeffrey D Peterson Webmaster Crary Industries, Inc. -----Original Message----- From: zope-bounces [at] zope [mailto:zope-bounces [at] zope] On Behalf Of Allen Schmidt Sr. Sent: Monday, December 29, 2008 9:43 AM To: zope [at] zope Subject: [Zope] Question about URL lookups Sorry if this is too generic a question but thought I would throw it out. Interested in doing a page that does a ZSQL lookup based URL parts but not like a normal db lookup. I want another way to do: domain.com/LocalSearchFolder/lookup?category=27&state=va&city=Fredericksburg More like this: domain.com/LocalSearchFolder/L-Fredericksburg/S-VA/C-Plumbing And that page (ummmm...DTML preferably) would display the lookup results for Plumbing contractors in Fredericksburg, VA. Any pointers to ideas?? Thanks! -Allen _______________________________________________ Zope maillist - Zope [at] zope 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 [at] zope 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 )
|