Hi Sean,

Sean Cazzell wrote:
>
>
> Kevin, adding back positional params will be awesome.  I know you can
> currently use default, but you are going to have to create a separate
> class for every exposed method or put some sort of dispatch logic into
> your Root.default.  I do agree that not having to maintain a separate
> URL mapping file is nice and DRY.

You don't need a default method for every class, instead you can just
inherit your controller from this class:

cherrypy.lib.cptools.PositionalParametersAware

Take a look at ticket #73:

http://trac.turbogears.org/turbogears/ticket/73

I think that's the interim solution Kevin was talking about, It's a
simple fix so I hope it will make it to 0.9 on the base Controller
class, not only the Root one.

>
> Also turbogears.expose validators do not work with positional
> parameters.  I've toyed with various fixes to this - my initial thought
> was to do introspection on the decorated method, but I think that breaks
> when you have stacked decorators like
>

Do they work with the above solution? Unfortunately I can't experiment
ATM.

Ciao
Michele

Reply via email to