Commit 5b5ae8d2 authored by Denis Laxalde's avatar Denis Laxalde
Browse files

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

--HG--
branch : 3.25
parent 4db0f2251960
......@@ -1060,6 +1060,7 @@ the repository',
MODES = ('common', 'repository', 'Any')
MCOMPAT = {'all-in-one': MODES,
'pyramid': MODES,
'repository': ('common', 'repository', 'Any')}
@classmethod
def accept_mode(cls, mode):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment