diff options
| author | Chris McDonough <chrism@agendaless.com> | 2010-07-28 01:26:09 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2010-07-28 01:26:09 +0000 |
| commit | be6f3b9ae06b31920d90744b20ccb7a8b4d9a278 (patch) | |
| tree | 1b7b5831b1c80fb1057d0a1e73c4191825f622ab /repoze/bfg/configuration.py | |
| parent | d58946946d3b29c3de8a7b4d937aa4af72bf63bf (diff) | |
| download | pyramid-be6f3b9ae06b31920d90744b20ccb7a8b4d9a278.tar.gz pyramid-be6f3b9ae06b31920d90744b20ccb7a8b4d9a278.tar.bz2 pyramid-be6f3b9ae06b31920d90744b20ccb7a8b4d9a278.zip | |
- 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.
Diffstat (limited to 'repoze/bfg/configuration.py')
| -rw-r--r-- | repoze/bfg/configuration.py | 3 |
1 files changed, 2 insertions, 1 deletions
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) |
