From 160f01439dc3e0d865b2e77bb4a9a7c9e7a16c1a Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 20 Sep 2009 02:54:46 +0000 Subject: - Speed: do not register an ITraverserFactory in configure.zcml; instead rely on queryAdapter and a manual default to ModelGraphTraverser. - Speed: do not register an IContextURL in configure.zcml; instead rely on queryAdapter and a manual default to TraversalContextURL. - General speed microimprovements for helloworld benchmark: replace try/excepts with statements which use 'in' keyword. --- repoze/bfg/url.py | 1 - 1 file changed, 1 deletion(-) (limited to 'repoze/bfg/url.py') diff --git a/repoze/bfg/url.py b/repoze/bfg/url.py index b507e9432..5d1f08faa 100644 --- a/repoze/bfg/url.py +++ b/repoze/bfg/url.py @@ -178,7 +178,6 @@ def model_url(model, request, *elements, **kw): context_url = queryMultiAdapter((model, request), IContextURL) if context_url is None: - # b/w compat for unit tests context_url = TraversalContextURL(model, request) model_url = context_url() -- cgit v1.2.3