[Zope] Pretend folders
Kevin Carlson
khcarlso@bellsouth.net
Tue, 23 Jul 2002 11:32:17 -0400
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
_______________________________________________
Zope maillist - Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )