Add some fields in the module dict
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 23 Jan 2009 14:55:07 +0000 (14:55 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 23 Jan 2009 14:55:07 +0000 (14:55 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2216 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/bertos_utils.py

index bed5493b499ac60984ed3d73205e36e14fe1c685..52eca1d7a59a161f9b15d47c4f7bd7ee23c6c1ea 100644 (file)
@@ -157,6 +157,9 @@ def loadModuleInfos(path):
     if the given file is not a BeRTOS module:
         "depends": a list of modules needed by this module
         "configuration": the cfg_*.h with the module configurations
+        "description": a string containing the brief description of doxygen
+        "enabled": contains False but the wizard will change if the user select
+        the module
     """
     moduleInfos = {}
     string = open(path, "r").read()
@@ -166,7 +169,10 @@ def loadModuleInfos(path):
         index = comment.find("$WIZARD_MODULE")
         if index != -1:
             exec(comment[index + 1:])
-            moduleInfos[WIZARD_MODULE["name"]] = {"depends": WIZARD_MODULE["depends"], "configuration": WIZARD_MODULE["configuration"]}
+            moduleInfos[WIZARD_MODULE["name"]] = {"depends": WIZARD_MODULE["depends"],
+                                                    "configuration": WIZARD_MODULE["configuration"],
+                                                    "description": "",
+                                                    "enabled": False}
             return moduleInfos
     return {}