[Zope] Pretend folders

Florent Guillaume fg@nuxeo.com
23 Jul 2002 17:54:24 +0200


http://www.google.com/search?q=traverse_subpath

Florent


On Tue, 2002-07-23 at 17:32, Kevin Carlson wrote:
> How does one use the traverse_subpath binding to do this?
> 
> Kevin
> 
> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
> Florent Guillaume
> Sent: Tuesday, July 23, 2002 7:31 AM
> To: zope@zope.org
> Subject: Re: [Zope] Pretend folders
> 
> 
> 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