[Zope] Pretend folders

Florent Guillaume fg@nuxeo.com
Tue, 23 Jul 2002 11:31:01 +0000 (UTC)


Oliver Bleutgen  <myzope@gmx.net> wrote:
> Peter Bengtsson wrote:
> > What I want is to be able to pretend that a certain folder exists when 
> > it doesn't.
> >  From a database of directory structures I would like to be able to 
> > build up fake folders that don't exist.
> > So instead of http://host/directory?dir_id=345 I would like to have 
> > http://host/directory/Business/Entertainment/Music
> > 
> > How do I go abouts doing this?
> 
> 
> Maybe PathHandler, one of the nice products from the NIP guys, is a good 
> starting point:
> 
> "The Path Handler product lets you handle URLs which don't correspond to 
> objects.
> 
> For example, if ph is a Path Handler, then, in the following URL:
> 
> http://a.server/ph/1/2/3/4"
> 
> See:
> http://www.zope.org/Members/NIP/PathHandler

Note that you can also do that easily with the traverse_subpath binding
of a Python Script.

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg@nuxeo.com