The panko.api.hooks Module

The panko.api.hooks Module

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.
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.