1

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.

tshepang
  • 12,111
  • 21
  • 91
  • 136
ggez44
  • 895
  • 8
  • 17

1 Answers1

1

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.

Michael Merickel
  • 23,153
  • 3
  • 54
  • 70