diff options
author | Alfredo Deza <alfredodeza@gmail.com> | 2013-02-03 09:30:04 -0500 |
---|---|---|
committer | Alfredo Deza <alfredodeza@gmail.com> | 2013-02-03 09:30:04 -0500 |
commit | 2124e5e6cd3c2c4f077614c3334f956d1a86d4c4 (patch) | |
tree | ff09c75e61378c5f8914065332843b2ac44957e3 | |
parent | 78b1aece2b6c0c3fbdb9fba040a3cdb245cfa08c (diff) | |
download | pecan-2124e5e6cd3c2c4f077614c3334f956d1a86d4c4.tar.gz |
use path_info instead of path
-rw-r--r-- | pecan/core.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pecan/core.py b/pecan/core.py index a31dd9d..3f22d79 100644 --- a/pecan/core.py +++ b/pecan/core.py @@ -363,8 +363,9 @@ class Pecan(object): # get a sorted list of hooks, by priority (no controller hooks yet) state.hooks = self.determine_hooks() - # store the routing path to allow hooks to modify it - request.pecan['routing_path'] = request.path + # store the routing path for the current application to allow hooks to + # modify it + request.pecan['routing_path'] = request.path_info # handle "on_route" hooks self.handle_hooks('on_route', state) |