From be6f3b9ae06b31920d90744b20ccb7a8b4d9a278 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 28 Jul 2010 01:26:09 +0000 Subject: - When adding a view for a route which did not yet exist ("did not yet exist" meaning, temporally, a view was added with a route name for a route which had not yet been added via add_route), the value of the ``custom_predicate`` argument to ``add_view`` was lost. Symptom: wrong view matches when using URL dispatch and custom view predicates together. --- repoze/bfg/configuration.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'repoze/bfg/configuration.py') diff --git a/repoze/bfg/configuration.py b/repoze/bfg/configuration.py index 08f6a6a5c..d11839613 100644 --- a/repoze/bfg/configuration.py +++ b/repoze/bfg/configuration.py @@ -839,7 +839,8 @@ class Configurator(object): containment=containment, attr=attr, renderer=renderer, wrapper=wrapper, xhr=xhr, accept=accept, header=header, path_info=path_info, - custom_predicates=(), context=context, _info=u'' + custom_predicates=custom_predicates, context=context, + _info=u'' ) view_info = deferred_views.setdefault(route_name, []) view_info.append(info) -- cgit v1.2.3