[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.
--- 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):