diff options
Diffstat (limited to 'repoze/bfg/router.py')
| -rw-r--r-- | repoze/bfg/router.py | 8 |
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']) + + |
