From 3a44d6430a749a0e3030818a15157b762e263677 Mon Sep 17 00:00:00 2001 From: duplo Date: Fri, 23 Oct 2009 13:33:53 +0000 Subject: [PATCH] Modify the Wizard configuration files parser, in order to take another parameter (conditional_deps). This optional parameter is for boolean values only, and will contain the list of the modules that have to be activated if the value is setted to True (1). example usage: /** * Parameter brief * * Parameter description * * $WIZ$ type = 'boolean' * $WIZ$ conditional_deps = 'dc_motor', 'kfile' */ #define EXAMPLE_PARAMETER 0 git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3096 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/bertos_utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/wizard/bertos_utils.py b/wizard/bertos_utils.py index 5402e014..7f470a1c 100644 --- a/wizard/bertos_utils.py +++ b/wizard/bertos_utils.py @@ -686,6 +686,7 @@ def loadConfigurationInfos(path): "long": boolean indicating if the num is a long "unsigned": boolean indicating if the num is an unsigned "value_list": the name of the enum for enum parameters + "conditional_deps": the list of conditional dependencies for boolean parameters """ configuration_infos = {} configuration_infos["paramlist"] = [] -- 2.25.1