[Zope] Question about URL lookups
Jeff Peterson
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
Webmaster
Crary Industries, Inc.
-----Original Message-----
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:
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.org
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 )
More information about the Zope
mailing list