I think all you need is a default method.
cherrypy.expose
def default(self, item):
return self.index(obj=item)
Kevin
On 2/14/06, Ken <kkinder gmail.com> wrote:
>
> Looking at the recipie for dynamically adding objects
to a tree... it's
> almost what I need:
>
> http://www.cherry
py.org/wiki/Attach
>
> The issue is that there would be a lot of objects to
add -- too many,
> in fact. I need more of a dynamic lookup kind of deal,
where a method
> is called on 404 or something. I've considered doing a
mod_rewrite that
> would be like /foo/bar -> /foo?obj=bar, but that
precludes dynamic
> development directly with cherrypy's webserver.
>
> Thoughts?
>
> -Ken
>
>
--
Kevin Dangoor
Author of the Zesty News RSS newsreader
email: kid blazingthings.com
company: http://www.BlazingThings
.com
blog: http://www.BlueSkyOnMars
.com
|