How do I add a generic "controller/action" route with Akhet's add_handler?

105 views Asked by At

I'm moving from Pylons to Pyramid/Akhet, and I'm confused by the setup.

Is there any way to add a generic "controller/action" route with Akhet's add_handler method? (or even with the add_route method in base Pyramid?)

The way I'm understanding it, it seems like I need to do a new add_handler() call for every new controller I add.

1

There are 1 answers

1
Michael Merickel On BEST ANSWER

There is no support for a {controller} or {handler} wildcard in pyramid_handlers. You will need to call add_handler at least once per handler. This is one of the bw-incompat changes users have to go through when moving from Pylons.