summaryrefslogtreecommitdiff
path: root/repoze/bfg/router.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-06-11 05:35:45 +0000
committerChris McDonough <chrism@agendaless.com>2009-06-11 05:35:45 +0000
commitb57adfea3d136bc33367ae8aab4371810c9a9359 (patch)
tree3396c052431a8597ac5104e493046e60384dd8bc /repoze/bfg/router.py
parent2a258c73fccfea63592fe485a65bfca2aea83ef4 (diff)
downloadpyramid-b57adfea3d136bc33367ae8aab4371810c9a9359.tar.gz
pyramid-b57adfea3d136bc33367ae8aab4371810c9a9359.tar.bz2
pyramid-b57adfea3d136bc33367ae8aab4371810c9a9359.zip
# provide backwards compatibility for applications which
# used routes (at least apps without any custom "context # factory") in BFG 0.9.X and before
Diffstat (limited to 'repoze/bfg/router.py')
-rw-r--r--repoze/bfg/router.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/repoze/bfg/router.py b/repoze/bfg/router.py
index 670a6a05c..65044b6e1 100644
--- a/repoze/bfg/router.py
+++ b/repoze/bfg/router.py
@@ -392,4 +392,10 @@ class DefaultRootFactory:
__parent__ = None
__name__ = None
def __init__(self, environ):
- pass
+ if 'bfg.routes.matchdict' in environ:
+ # provide backwards compatibility for applications which
+ # used routes (at least apps without any custom "context
+ # factory") in BFG 0.9.X and before
+ self.__dict__.update(environ['bfg.routes.matchdict'])
+
+