8000 Added Save/Save As support to Datasource by t8y8 · Pull Request #6 · tableau/document-api-python · GitHub
[go: up one dir, main page]

Skip to content

Added Save/Save As support to Datasource #6

8000
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 12, 2016
Merged

Added Save/Save As support to Datasource #6

merged 1 commit into from
May 12, 2016

Conversation

t8y8
Copy link
Contributor
@t8y8 t8y8 commented May 12, 2016

This required plumbing a filename through from the from_file classmethod and building an ElementTree to serialize into a file. This pretty much mirrors the Workbook model. I also removed the file validation check on save since we validate on instantiation already, at this point you know you have a 'twb/tds' open. Added a matching test.

Testing: Existing suite (up to 9!) on py2/3 on Windows/Mac.
Also opened the resulting file in Desktop and it's recognized.

…lename through from the from_file classmethod and building an ElementTree to serialize into a file. This pretty much mirrors the Workbook model. I also removed the file validation check on save since we validate on instantiation already, at this point you know you have a 'twb/tds' open. Added a matching test
@benlower
Copy link
Contributor

@t8y8 this looks good. thanks for adding save/save-as for tds!

@benlower benlower merged commit 3c562b9 into tableau:master May 12, 2016
@benlower benlower deleted the datasource-save branch May 12, 2016 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0