summaryrefslogtreecommitdiff
path: root/routes/middleware.py
diff options
context:
space:
mode:
authorbbangert <none@none>2007-03-13 21:55:20 -0700
committerbbangert <none@none>2007-03-13 21:55:20 -0700
commit54773f5d61782004aca3467d9a5e49e690adba05 (patch)
treee45e53910bba52edadcb9eeec36ab3ed2ebd586a /routes/middleware.py
parent6ad6fc041e6e0a2f74d7f60591d19d920a336a41 (diff)
downloadroutes-54773f5d61782004aca3467d9a5e49e690adba05.tar.gz
[svn] * Added member_name and collection_name setting to Route object when made with
map.resource. * Updated routes.middleware to make the Routes matched accessible as environ['routes.route']. --HG-- branch : trunk
Diffstat (limited to 'routes/middleware.py')
-rw-r--r--routes/middleware.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/routes/middleware.py b/routes/middleware.py
index f9bc5e0..cc5ac26 100644
--- a/routes/middleware.py
+++ b/routes/middleware.py
@@ -83,6 +83,7 @@ altering = %s""" % (use_method_override, path_info))
match[key] = urllib.unquote_plus(val)
environ['wsgiorg.routing_args'] = ((), match)
+ environ['routes.route'] = route
# If the route included a path_info attribute and it should be used to
# alter the environ, we'll pull it out