The panko.api.hooks Module

The panko.api.hooks Module

service None

Bases: pecan.hooks.PecanHook

Attach the configuration object to the request.

That allows controllers to get it.

ConfigHook.before(state)

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.

service None

Bases: pecan.hooks.PecanHook

DBHook.before(state)

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.

service None

Bases: pecan.hooks.PecanHook

TranslationHook.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.