From 0b2f13404c91b6546571b22b94c7e94882453364 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Wed, 15 Nov 2023 21:43:58 +0100 Subject: [PATCH] allow more properties for leader --- tiramisu/option/optiondescription.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tiramisu/option/optiondescription.py b/tiramisu/option/optiondescription.py index b73a6ae..37ad394 100644 --- a/tiramisu/option/optiondescription.py +++ b/tiramisu/option/optiondescription.py @@ -95,15 +95,15 @@ class CacheOptionDescription(BaseOption): properties = option.impl_getproperties() if 'force_store_value' in properties: force_store_values.append(option) - if __debug__ and ('force_default_on_freeze' in properties or \ - 'force_metaconfig_on_freeze' in properties) and \ - 'frozen' not in properties and \ - option.impl_is_leader(): - raise ConfigError(_('a leader ({0}) cannot have ' - '"force_default_on_freeze" or ' - '"force_metaconfig_on_freeze" ' - 'property without "frozen"' - '').format(option.impl_get_display_name())) +# if __debug__ and ('force_default_on_freeze' in properties or \ +# 'force_metaconfig_on_freeze' in properties) and \ +# 'frozen' not in properties and \ +# option.impl_is_leader(): +# raise ConfigError(_('a leader ({0}) cannot have ' +# '"force_default_on_freeze" or ' +# '"force_metaconfig_on_freeze" ' +# 'property without "frozen"' +# '').format(option.impl_get_display_name())) if option.impl_is_readonly(): raise ConflictError(_('duplicate option: {0}').format(option)) if not self.impl_is_readonly() and display_name: