diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-11-19 10:44:55 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-11-19 10:44:55 +0000 |
| commit | eac7c470021b647d63c2e2af8acd6cebd738f2a4 (patch) | |
| tree | 6d04102c9442c0dd67a26d002ff89ae51b454993 /repoze/bfg/traversal.py | |
| parent | 4dd55a50a7ed559748661f369313030773d13e75 (diff) | |
| download | pyramid-eac7c470021b647d63c2e2af8acd6cebd738f2a4.tar.gz pyramid-eac7c470021b647d63c2e2af8acd6cebd738f2a4.tar.bz2 pyramid-eac7c470021b647d63c2e2af8acd6cebd738f2a4.zip | |
Rearrange things to try to avoid circular import deps.
Diffstat (limited to 'repoze/bfg/traversal.py')
| -rw-r--r-- | repoze/bfg/traversal.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/repoze/bfg/traversal.py b/repoze/bfg/traversal.py index 325e41e4b..b46fb83c7 100644 --- a/repoze/bfg/traversal.py +++ b/repoze/bfg/traversal.py @@ -632,3 +632,12 @@ class TraversalContextURL(object): def _join_path_tuple(tuple): return tuple and '/'.join([quote_path_segment(x) for x in tuple]) or '/' +class DefaultRootFactory: + __parent__ = None + __name__ = None + def __init__(self, request): + matchdict = getattr(request, 'matchdict', {}) + # 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(matchdict) |
