# HG changeset patch # User Denis Laxalde # Date 1491568301 -7200 # Node ID 10a18c6c5e102eed3ba726d212015e632d90336e # Parent 4db0f22519600071d5f54e3e9f61c977f2a26ba1 [cwconfig] Add "pyramid" config type to MCOMPAT dict I don't know what this is for exactly, but the accept_mode method below queries this dict with the configuration type name. And if the latter is "pyramid", it crashes since there's no key in MCOMPAT dict. So add one with the same value as "all-in-one". This code is called during "upgrade" migration in particular. diff -r 4db0f2251960 -r 10a18c6c5e10 cubicweb/cwconfig.py --- a/cubicweb/cwconfig.py Fri Apr 07 15:23:38 2017 +0200 +++ b/cubicweb/cwconfig.py Fri Apr 07 14:31:41 2017 +0200 @@ -1060,6 +1060,7 @@ MODES = ('common', 'repository', 'Any') MCOMPAT = {'all-in-one': MODES, + 'pyramid': MODES, 'repository': ('common', 'repository', 'Any')} @classmethod def accept_mode(cls, mode):