diff options
author | Alfredo Deza <alfredodeza@gmail.com> | 2011-06-24 20:20:56 -0400 |
---|---|---|
committer | Alfredo Deza <alfredodeza@gmail.com> | 2011-06-24 20:20:56 -0400 |
commit | 11f79156c6909b9be5213504bc57854e4bee5ecc (patch) | |
tree | 107fe9a782588f972048be14d875c9cea2397fa3 /pecan | |
parent | 9db5baece5db7f52ecfe86d180391e99c9872b03 (diff) | |
download | pecan-11f79156c6909b9be5213504bc57854e4bee5ecc.tar.gz |
Hook can make an automatic as_dict convertion
Diffstat (limited to 'pecan')
-rw-r--r-- | pecan/__init__.py | 2 | ||||
-rw-r--r-- | pecan/hooks.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pecan/__init__.py b/pecan/__init__.py index ff6990f..20ff37a 100644 --- a/pecan/__init__.py +++ b/pecan/__init__.py @@ -41,6 +41,6 @@ def make_app(root, static_root=None, debug=False, errorcfg={}, wrap_app=None, lo app = TransLogger(app, **(isinstance(logging, dict) and logging or {})) if hasattr(conf, 'requestviewer'): existing_hooks = kw.get('hooks', []) - existing_hooks.append(RequestViewerHook(conf.requestviewer.as_dict())) + existing_hooks.append(RequestViewerHook(conf.requestviewer)) kw['hooks'] = existing_hooks return app diff --git a/pecan/hooks.py b/pecan/hooks.py index 8067e4a..650afdc 100644 --- a/pecan/hooks.py +++ b/pecan/hooks.py @@ -5,7 +5,7 @@ from webob.exc import HTTPFound from util import iscontroller, _cfg from routing import lookup_controller -__all__ = ['PecanHook', 'TransactionHook', 'HookController'] +__all__ = ['PecanHook', 'TransactionHook', 'HookController', 'RequestViewerHook'] def walk_controller(root_class, controller, hooks): |