diff options
author | Ryan Petrello <lists@ryanpetrello.com> | 2014-05-19 16:56:43 -0400 |
---|---|---|
committer | Ryan Petrello <lists@ryanpetrello.com> | 2014-05-19 17:26:29 -0400 |
commit | 9cea1bb00943c89a6fc1e83434c39493a31ace9d (patch) | |
tree | f00000513f4c607e923ff81808cdb12fd0762ac6 /pecan/core.py | |
parent | edeff73f438517d862a47b30a6a0f87e0cdd033e (diff) | |
download | pecan-9cea1bb00943c89a6fc1e83434c39493a31ace9d.tar.gz |
Allow controllers to return an explicit `webob.Response` object.
Change-Id: I5e827eed73962a0a6f5d879224759a4d13888751
Diffstat (limited to 'pecan/core.py')
-rw-r--r-- | pecan/core.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pecan/core.py b/pecan/core.py index 76fc975..6a096b5 100644 --- a/pecan/core.py +++ b/pecan/core.py @@ -519,6 +519,9 @@ class Pecan(object): # care of filling it out if result is response: return + elif isinstance(result, Response): + state.response = result + return raw_namespace = result |