[Zope] Zope Question : Virtual folders / URL's

Ian Sparks Ian Sparks" <isparks@wmute.u-net.com
Thu, 9 Mar 2000 09:27:27 -0000


Have been reading the docs but still not clear on a few things.

I have my site mapped out in my mind. It has URL's like :

mysite.com/          (main page)
mysite.com/rss     (rss content for mysite)
mysite.com/<username>  (main <username> page)
mysite.com/<username>/rss (rss news content feed for <username> page)

Where I come from data belongs in a database. I'm happy for all my HTML to
be in the ZopeDB but not any application data (users definitions, news items
etc etc).

So, looking at my URLs I see that there are a mixture of static and virtual
folders.

mysite.com/index_html is obviously static though it contains dynamic
content. Doing this with Zope is easy and obvious.

mysite.com/Fred/ is a dynamic page. Fred only exists as a username in a
users table and related information in other tables. It's not obvious to me
how I go about serving this page because I can't create a static page for
every username (nor do I want to).

Clearly mysite.com/Fred/rss will use almost identical processing to the
mysite.com/rss page, just different parameters so re-using my "rss"
generating code is important to me too.

I'm know these virtual folders can be served up by Zope. Can someone tell me
what I am missing?

- Ian Sparks.