From 8cb437110ed21f80a72f131fee19c0c9debd574b Mon Sep 17 00:00:00 2001 From: Prasanna Santhanam Date: Wed, 4 Sep 2013 13:11:05 +0530 Subject: [PATCH] marvin_refactor: getText() reveals the actual value otherwise required is always not None and always True Signed-off-by: Prasanna Santhanam --- tools/marvin/marvin/codegenerator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/marvin/marvin/codegenerator.py b/tools/marvin/marvin/codegenerator.py index 2a6f50d8370..1eb8810c9c7 100644 --- a/tools/marvin/marvin/codegenerator.py +++ b/tools/marvin/marvin/codegenerator.py @@ -311,7 +311,7 @@ class codeGenerator(object): assert paramProperty.name required = param.getElementsByTagName('required') - if required: + if getText(required) == "true": paramProperty.required = getText(required) requestDescription = param.getElementsByTagName('description')