diff --git a/CHANGELOG.md b/CHANGELOG.md index 3c5976a..178d112 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ + +## 07 (26 May 2021) +* Fix bug in xfile that overwrote the namespace name when saving a document + ## 06 (11 January 2017) * Initial SQL and query banding support (#123) diff --git a/setup.py b/setup.py index 59270ed..e75a961 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( name='tableaudocumentapi', - version='0.6', + version='0.7', author='Tableau', author_email='github@tableau.com', url='https://github.com/tableau/document-api-python', diff --git a/tableaudocumentapi/xfile.py b/tableaudocumentapi/xfile.py index 8e213ab..33dba40 100644 --- a/tableaudocumentapi/xfile.py +++ b/tableaudocumentapi/xfile.py @@ -121,6 +121,7 @@ def save_into_archive(xml_tree, filename, new_filename=None): def _save_file(container_file, xml_tree, new_filename=None): + ET.register_namespace("user", "http://www.tableausoftware.com/xml/user") if new_filename is None: new_filename = container_file