The panko.api.hooks Module
updated: 2019-04-12 06:31
-
class
panko.api.hooks.ConfigHook(conf)[source]
Bases: pecan.hooks.PecanHook
Attach the configuration object to the request.
That allows controllers to get it.
-
before(state)[source]
Override this method to create a hook that gets called after
routing, but before the request gets passed to your controller.
| Parameters: | state – The Pecan state object for the current request. |
-
class
panko.api.hooks.DBHook(conf)[source]
Bases: pecan.hooks.PecanHook
-
before(state)[source]
Override this method to create a hook that gets called after
routing, but before the request gets passed to your controller.
| Parameters: | state – The Pecan state object for the current request. |
-
class
panko.api.hooks.TranslationHook[source]
Bases: pecan.hooks.PecanHook
-
after(state)[source]
Override this method to create a hook that gets called after
the request has been handled by the controller.
| Parameters: | state – The Pecan state object for the current request. |
updated: 2019-04-12 06:31