Skip to content

Commit

Permalink
<XML>[]: <V10 compatibility>
Browse files Browse the repository at this point in the history
[I do not want to manually re-generate my V10 files]

[#50]
  • Loading branch information
Humberto Sanchez II committed Oct 2, 2023
1 parent e46185c commit 3c2dca4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion oglio/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__: str = '1.2.0'
__version__: str = '1.2.1'
7 changes: 6 additions & 1 deletion oglio/toXmlV11/PyutToXml.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,13 @@ def _pyutParameterToXml(self, pyutParameter: PyutParameter, pyutMethodElement: E
attributes = {
XmlConstants.ATTR_NAME: pyutParameter.name,
XmlConstants.ATTR_TYPE: pyutParameter.type.value,
XmlConstants.ATTR_DEFAULT_VALUE: pyutParameter.defaultValue,
# XmlConstants.ATTR_DEFAULT_VALUE: pyutParameter.defaultValue,
}

defaultValue = pyutParameter.defaultValue
if defaultValue is not None:
attributes[XmlConstants.ATTR_DEFAULT_VALUE] = pyutParameter.defaultValue

pyutParameterElement: Element = SubElement(pyutMethodElement, XmlConstants.ELEMENT_MODEL_PYUT_PARAMETER, attrib=attributes)

return pyutParameterElement
Expand Down

0 comments on commit 3c2dca4

Please sign in to comment.