Skip to content

add export_wb sample for 'fullpdf'#264

Merged
graysonarts merged 4 commits intotableau:developmentfrom
graysonarts:sample-export-workbook
Feb 21, 2018
Merged

add export_wb sample for 'fullpdf'#264
graysonarts merged 4 commits intotableau:developmentfrom
graysonarts:sample-export-workbook

Conversation

@graysonarts
Copy link
Copy Markdown
Contributor

Emulating the basic functionality of fullpdf from tabcmd.

Comment thread samples/export_wb.py Outdated
parser.add_argument('--server', '-s', required=True, help='server address')
parser.add_argument('--username', '-u', required=True, help='username to sign into server')
parser.add_argument('--site', '-S', default=None)
parser.add_argument('-p', default=None)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add --password

Comment thread samples/export_wb.py Outdated
parser.add_argument('--logging-level', '-l', choices=['debug', 'info', 'error'], default='error',
help='desired logging level (set to error by default)')
parser.add_argument('--file', '-f', help='filename to store the exported data')
parser.add_argument('resource_id', help='LUID for the view')
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"for the workbook"

Comment thread samples/export_wb.py Outdated

parser.add_argument('--logging-level', '-l', choices=['debug', 'info', 'error'], default='error',
help='desired logging level (set to error by default)')
parser.add_argument('--file', '-f', help='filename to store the exported data')
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add to the help that this is the default or just make it explicitly the default

Comment thread samples/export_wb.py Outdated
server = TSC.Server(args.server, use_server_version=True)
try:
with server.auth.sign_in(tableau_auth):
views = list(TSC.Pager(server.views))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems dumb (Russell told me to put that :) )

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still need to address the dumb.

Copy link
Copy Markdown
Collaborator

@t8y8 t8y8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@graysonarts graysonarts merged commit 86e4638 into tableau:development Feb 21, 2018
@graysonarts graysonarts deleted the sample-export-workbook branch February 21, 2018 19:58
vchavatapalli pushed a commit to vchavatapalli/server-client-python that referenced this pull request May 5, 2026
* add export_wb sample for 'fullpdf'

* Addressing code review feedback from Lee

* Fixing the dumb thing that I did where I was getting the view, then throwing it away and getting it again...

* pep8 error
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.

3 participants