From b57adfea3d136bc33367ae8aab4371810c9a9359 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Thu, 11 Jun 2009 05:35:45 +0000 Subject: # provide backwards compatibility for applications which # used routes (at least apps without any custom "context # factory") in BFG 0.9.X and before --- repoze/bfg/router.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'repoze/bfg/router.py') 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']) + + -- cgit v1.2.3