marvin_refactor: getText() reveals the actual value

otherwise required is always not None and always True

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
Prasanna Santhanam 2013-09-04 13:11:05 +05:30
parent cdb6754323
commit 8cb437110e
1 changed files with 1 additions and 1 deletions

View File

@ -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')