[FIX] Extension of controller in-place with explicit spec of same _cp_path
authorXavier Morel <xmo@openerp.com>
Thu, 18 Apr 2013 09:24:05 +0000 (11:24 +0200)
committerXavier Morel <xmo@openerp.com>
Thu, 18 Apr 2013 09:24:05 +0000 (11:24 +0200)
commitdb4d08e3a995bb262ebbbdab2b75b466b7c187df
tree2b0c1d8bf62745f8f1f87161f46ebaa723cef525
parent3df2a146cdc87410ff271b663827aa2bacfe1f65
[FIX] Extension of controller in-place with explicit spec of same _cp_path

When extending a controller in-place (e.g. A(Controller), B(A)) and
providing the exact same _cp_path as parent (no-op) execution path
would go into handler for _cp_path overwriting and raise an assertion
error for overwriting of existing controller.

Except this is allowed (if ugly) pattern, so warn & ignore behavior
(it is harmless).

bzr revid: xmo@openerp.com-20130418092405-wrmmrd648b9koefu
addons/web/http.py
addons/web/tests/test_dispatch.py