Could you please send me a link to documentation that describes all of these 'special' variables, etc. Thanks mucho, -chad Kevin Dangoor wrote:
Hi, Chad
One way you can do this is: select * from weather_data where community='<!--#var "PARENTS[1].id"-->' and metro='<!--#var "PARENTS[2].id"-->' ...
PARENTS[0].id in this case would be "weather".
Kevin
"Chad M. Townsend" wrote:
I'm new to Zope, so I will have a few questions over the next few weeks. Working my way through all the docs.
For example, how might I accomplish this:
http://www.domain.com/home/country/state/metro/community/weather/index_html
Now I would like weather/index_html to receive the arguments 'country', 'state', 'metro', 'community' so I can feed them to a SQL query. So on the index_html I add a connect to the database and a sql method, but how to I access the PATH_INFO to wind up with a statement like:
select * from weather_data where country = '<!-- ????? -->' and state , etc ...
Any help to point me in the right direction will be greatly appreciated.
-chad
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )