summaryrefslogtreecommitdiff
path: root/repoze/bfg/urldispatch.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-06-01 07:20:48 +0000
committerChris McDonough <chrism@agendaless.com>2009-06-01 07:20:48 +0000
commita7f13ff10e0eae01b958738e41d9d172af2916dd (patch)
tree4ecb45f92d4cbca39ca8ed70b6e7d7a657efcb33 /repoze/bfg/urldispatch.py
parentc1278c88b6cd19ad81c96f8b8a66a01df23a6200 (diff)
downloadpyramid-a7f13ff10e0eae01b958738e41d9d172af2916dd.tar.gz
pyramid-a7f13ff10e0eae01b958738e41d9d172af2916dd.tar.bz2
pyramid-a7f13ff10e0eae01b958738e41d9d172af2916dd.zip
- It was not possible to register a custom ``IRoutesContextFactory``
for use as a default context factory as documented in the "Hooks" chapter.
Diffstat (limited to 'repoze/bfg/urldispatch.py')
-rw-r--r--repoze/bfg/urldispatch.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/repoze/bfg/urldispatch.py b/repoze/bfg/urldispatch.py
index 7f1431819..612843cfa 100644
--- a/repoze/bfg/urldispatch.py
+++ b/repoze/bfg/urldispatch.py
@@ -55,11 +55,7 @@ class RoutesRootFactory(Mapper):
kw['explicit'] = True
Mapper.__init__(self, **kw)
self._regs_created = False
- context_factory = queryUtility(IRoutesContextFactory,
- default=DefaultRoutesContext)
- if IRoutesContext.implementedBy(context_factory):
- self.decorate_context = False
- self.default_context_factory = context_factory
+ self.default_context_factory = DefaultRoutesContext
def has_routes(self):
return bool(self.matchlist)