[Zope] Please help, 3rd post with no luck.

Tony McDonald tony.mcdonald@ncl.ac.uk
Fri, 21 May 1999 16:49:59 +0100


>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.
>
>Thanks,
>
>-chad

Assuming you *can* have a URL which allows two direct traversals...

Top of my head....

Rip the URL to bits using 'string.split'

<!--#in expr="_.string.split(dummyurl,'/')"-->
<!--#var sequence-item--><br>
<!--#/in -->

and work on it that way perhaps?
if dummyurl = 
http://www.domain.com/us/states/fl/cities/miami/weaher.html you get...

	http:

                  www.domain.com
                  us
                  states
                  fl
                  cities
                  miami
                  weaher.html

(the second line is blank)
hth
------
Dr Tony McDonald,  FMCC, Networked Learning Environments Project
The Medical School, Newcastle University Tel: +44 191 222 5888
Fingerprint: 3450 876D FA41 B926 D3DD  F8C3 F2D0 C3B9 8B38 18A2