summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRyan Petrello <lists@ryanpetrello.com>2014-07-21 23:43:26 -0400
committerRyan Petrello <lists@ryanpetrello.com>2014-07-28 22:10:20 -0400
commit01c9a110fc605bbd59f31a341a55d634b3a8119f (patch)
tree3f5682fc5c16116e5e1237c6619eecae6bf68f16 /docs
parent236301f6d7a8128513b8d45114b04a33189502ea (diff)
downloadpecan-01c9a110fc605bbd59f31a341a55d634b3a8119f.tar.gz
Provide `pecan.state.arguments` for inspecting controller call arguments
Change-Id: Ibbd8b2f075a875b109c7309bc42e0d1f1d5ae610
Diffstat (limited to 'docs')
-rw-r--r--docs/source/hooks.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/source/hooks.rst b/docs/source/hooks.rst
index 1cdb4ef..3b9d364 100644
--- a/docs/source/hooks.rst
+++ b/docs/source/hooks.rst
@@ -71,6 +71,10 @@ response objects, and which controller was selected by Pecan's routing::
# and used to generate the response body
#
assert state.controller.__func__ is RootController.index.__func__
+ assert isinstance(state.arguments, inspect.Arguments)
+ print state.arguments.args
+ print state.arguments.varargs
+ print state.arguments.keywords
assert isinstance(state.request, webob.Request)
assert isinstance(state.response, webob.Response)
assert isinstance(state.hooks, list)