[Zope] Please help, 3rd post with no luck.
Chad M. Townsend
chad@corp.vcn.net
Fri, 21 May 1999 15:41:57 +0000
Thanks! That's exactly what I was looking for.
-chad
Martijn Pieters wrote:
> At 17:13 21/05/99 , Chad M. Townsend wrote:
>
> >http://www.domain.com/us/states/fl/cities/miami/weaher.html
> >
> >us = folder
> >states = Z SQL Method
> >fl = arg to states
> >cities = Z SQL Method
> >miami = arg to cities
> >weather = DTML Document
> >
> >I am trying to access what state and city where chosen in the weather
> >document. Is there another way to do this? I'm trying to avoid making
> >53,000 folders. Someone please point me in the right direction.
>
> You could try to use _.string.split on URL1, the variable that probably reads:
> >http://www.domain.com/us/states/fl/cities/miami
>
> untested:
> (_.string.split(URL1, '/'))[-1] should contain 'miami'
> (_.string.split(URL1, '/'))[-3] should contain 'fl'
>
> --
> Martijn Pieters, Web Developer
> | Antraciet http://www.antraciet.nl
> | Tel: +31-35-6254545 Fax: +31-35-6254555
> | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj
> | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149
> ------------------------------------------
>
> _______________________________________________
> 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 )