From: duplo Date: Fri, 23 Oct 2009 13:33:53 +0000 (+0000) Subject: Modify the Wizard configuration files parser, in order to take another parameter... X-Git-Tag: 2.4.0~101 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=3a44d6430a749a0e3030818a15157b762e263677;p=bertos.git 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 --- 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"] = []