[Zope] Question about URL lookups

2008-12-29 Thread Allen Schmidt Sr.
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=27state=vacity=Fredericksburg
More like this:
domain.com/LocalSearchFolder/L-Fredericksburg/S-VA/C-Plumbing

And that page (u...DTML preferably) would display the lookup results 
for Plumbing contractors in Fredericksburg, VA.

Any pointers to ideas??

Thanks!
-Allen

___
Zope maillist  -  Zope@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 )


Re: [Zope] Question about URL lookups

2008-12-29 Thread Jeff Peterson
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-boun...@zope.org [mailto:zope-boun...@zope.org] On Behalf Of Allen 
Schmidt Sr.
Sent: Monday, December 29, 2008 9:43 AM
To: zope@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=27state=vacity=Fredericksburg
More like this:
domain.com/LocalSearchFolder/L-Fredericksburg/S-VA/C-Plumbing

And that page (u...DTML preferably) would display the lookup results 
for Plumbing contractors in Fredericksburg, VA.

Any pointers to ideas??

Thanks!
-Allen

___
Zope maillist  -  Zope@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 )
___
Zope maillist  -  Zope@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 )