[Zope] Question about URL lookups
jeff.peterson at crary.com
Mon Dec 29 11:24:29 EST 2008
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
Crary Industries, Inc.
From: zope-bounces at zope.org [mailto:zope-bounces at zope.org] On Behalf Of Allen Schmidt Sr.
Sent: Monday, December 29, 2008 9:43 AM
To: zope at zope.org
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:
More like this:
And that page (ummmm...DTML preferably) would display the lookup results
for Plumbing contractors in Fredericksburg, VA.
Any pointers to ideas??
Zope maillist - Zope at zope.org
** No cross posts or HTML encoding! **
(Related lists -
More information about the Zope