From a7f13ff10e0eae01b958738e41d9d172af2916dd Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Mon, 1 Jun 2009 07:20:48 +0000 Subject: - It was not possible to register a custom ``IRoutesContextFactory`` for use as a default context factory as documented in the "Hooks" chapter. --- repoze/bfg/urldispatch.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'repoze/bfg/urldispatch.py') 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) -- cgit v1.2.3