+def formatModuleNameValue(text):
+ """
+ Take the given string and return a tuple with the name of the parameter in the first position
+ and the value in the second.
+ """
+ block = re.findall("\s*([^\s]+)\s*(.+?)\s*$", text, re.MULTILINE)
+ return block[0]
+
+def getDescriptionInformations(text):
+ """
+ Take the doxygen comment and strip the wizard informations, returning the tuple
+ (comment, wizard_informations)
+ """
+ index = text.find("$WIZARD")
+ if index != -1:
+ exec(text[index + 1:])
+ informations = WIZARD
+ return text[:index].strip(), informations
+ else:
+ return text.strip(), {}
+