Skip to content

Commit 7bde194

Browse files
authored
Merge pull request #196 from tableau/preserve-namespace
#162 preserve the xmlns:user namespace when saving a file
2 parents 593b63e + 5af93c9 commit 7bde194

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2+
## 07 (26 May 2021)
3+
* Fix bug in xfile that overwrote the namespace name when saving a document
4+
15
## 06 (11 January 2017)
26

37
* Initial SQL and query banding support (#123)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name='tableaudocumentapi',
8-
version='0.6',
8+
version='0.7',
99
author='Tableau',
1010
author_email='github@tableau.com',
1111
url='https://github.com/tableau/document-api-python',

tableaudocumentapi/xfile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ def save_into_archive(xml_tree, filename, new_filename=None):
121121

122122
def _save_file(container_file, xml_tree, new_filename=None):
123123

124+
ET.register_namespace("user", "http://www.tableausoftware.com/xml/user")
124125
if new_filename is None:
125126
new_filename = container_file
126127

0 commit comments

Comments
 (0)