Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
de61f87
fixed publish mode enums and typos in samples
shinchris Sep 16, 2016
b61f421
Merge pull request #35 from tableau/bugfix-sample-enum
shinchris Sep 16, 2016
4c7a467
Updated all _construct_url() to just @property baseurl
LGraber Sep 27, 2016
36d63c0
Fixed pep8 issue (extra empty line)
LGraber Sep 27, 2016
e9aa592
Add property decorators
LGraber Sep 28, 2016
6897738
Add decorator files
LGraber Sep 28, 2016
1a0b945
Add test cases and combine decorators into one file
Sep 29, 2016
5ead147
Remove * and be explicit on imports
LGraber Sep 29, 2016
48a5f49
Ignore PyCharm related files
LGraber Sep 29, 2016
8c17ecc
Fix Travis errors. Fix error text for property_not_empty
LGraber Sep 29, 2016
05ff9fd
Trying again to fix travis complaints
LGraber Sep 29, 2016
a13d708
Rename property decorators
LGraber Sep 30, 2016
56af4af
Merge pull request #46 from tableau/issue-38
LGraber Sep 30, 2016
ab6b664
Cleaning up samples (#47)
t8y8 Oct 2, 2016
5dbdbee
Adding Schedules Support (#48)
t8y8 Oct 7, 2016
6da2cbe
Minor cleanups in __init__ and ScheduleItem serializer, and a flake8 …
t8y8 Oct 11, 2016
03d26cd
Fix for issue #60 (#61)
t8y8 Oct 15, 2016
4f4112b
Fix for issue #50 Add regex validator to content_url (#64)
t8y8 Oct 18, 2016
02559ab
Making the user list operations a no-op if we haven't populated the l…
Oct 20, 2016
eb91b41
Bugfix 66 add create group basic (#69)
Oct 20, 2016
4b9a86a
merging master into development
Oct 25, 2016
fd59034
Adding contributing doc that was missing from the repo (#74)
Oct 25, 2016
5ac17ec
Pipe password through to Update User (#75)
t8y8 Oct 25, 2016
e1f38a8
Update TableauAuth to speak in site_id rather than just site (#70)
Oct 27, 2016
2f041d1
Add Guest to site role enum (#83)
Kovner Oct 27, 2016
7c41a0a
Add connection credentials (#80)
geordielad Oct 27, 2016
1cbc230
Adding pagination sample (#72)
Oct 28, 2016
a6975db
Implement get server info (#84)
Oct 28, 2016
a4b90ca
Prep version 0.2 (#86)
Oct 28, 2016
6a48ddc
Cleanup duplications (#87)
Oct 28, 2016
101eedb
Fix missing token on requests (#89)
t8y8 Oct 31, 2016
a6d0ede
Implement Pager for auto-paging requests (#90)
t8y8 Oct 31, 2016
b6b0834
Adding changelog for release
Nov 1, 2016
1417564
Incorporating Tyler's feedback
Nov 1, 2016
ee4b36a
oops, scratch that, reverse it: site_id is the right one
Nov 1, 2016
79e9a2a
Merge pull request #92 from tableau/prep-for-0-2
Nov 1, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fixed publish mode enums and typos in samples
  • Loading branch information
shinchris committed Sep 16, 2016
commit de61f870920ac187d9b3b4004febf8c341ee2250
4 changes: 2 additions & 2 deletions samples/explore_datasource.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
####
# This script demonstrates how to use the Tableau Server API
# This script demonstrates how to use the Tableau Server Client
# to interact with datasources. It explores the different
# functions that the Server API supports on datasources.
#
Expand Down Expand Up @@ -43,7 +43,7 @@
if args.publish:
if default_project is not None:
new_datasource = TSC.DatasourceItem(default_project.id)
new_datasource = server.datasources.publish(new_datasource, args.publish, server.PublishMode.Overwrite)
new_datasource = server.datasources.publish(new_datasource, args.publish, TSC.Server.PublishMode.Overwrite)
print("Datasource published. ID: {}".format(new_datasource.id))
else:
print("Publish failed. Could not find the default project.")
Expand Down
4 changes: 2 additions & 2 deletions samples/explore_workbook.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
####
# This script demonstrates how to use the Tableau Server API
# This script demonstrates how to use the Tableau Server Client
# to interact with workbooks. It explores the different
# functions that the Server API supports on workbooks.
#
Expand Down Expand Up @@ -45,7 +45,7 @@

if default_project is not None:
new_workbook = TSC.WorkbookItem(default_project.id)
new_workbook = server.workbooks.publish(new_workbook, args.publish, server.PublishMode.Overwrite)
new_workbook = server.workbooks.publish(new_workbook, args.publish, TSC.Server.PublishMode.Overwrite)
print("Workbook published. ID: {}".format(new_workbook.id))
else:
print('Publish failed. Could not find the default project.')
Expand Down
4 changes: 2 additions & 2 deletions samples/move_workbook_projects.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
####
# This script demonstrates how to use the Tableau Server API
# This script demonstrates how to use the Tableau Server Client
# to move a workbook from one project to another. It will find
# a workbook that matches a given name and update it to be in
# the desired project.
#
# To run the script, you must have installed Python 2.7.9 or later.
# To run the script, you must have installed Python 2.7.X or 3.3 and later.
####

import tableauserverclient as TSC
Expand Down
6 changes: 3 additions & 3 deletions samples/move_workbook_sites.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
####
# This script demonstrates how to use the Tableau Server API
# This script demonstrates how to use the Tableau Server Client
# to move a workbook from one site to another. It will find
# a workbook that matches a given name, download the workbook,
# and then publish it to the destination site.
#
# To run the script, you must have installed Python 2.7.9 or later.
# To run the script, you must have installed Python 2.7.X or 3.3 and later.
####

import tableauserverclient as TSC
Expand Down Expand Up @@ -74,7 +74,7 @@
if target_project is not None:
new_workbook = TSC.WorkbookItem(name=args.workbook_name, project_id=target_project.id)
new_workbook = dest_server.workbooks.publish(new_workbook, workbook_path,
mode=dest_server.PublishMode.Overwrite)
mode=TSC.Server.PublishMode.Overwrite)
print("Successfully moved {0} ({1})".format(new_workbook.name, new_workbook.id))
else:
error = "The default project could not be found."
Expand Down
6 changes: 3 additions & 3 deletions samples/publish_workbook.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
####
# This script demonstrates how to use the Tableau Server API
# This script demonstrates how to use the Tableau Server Client
# to publish a workbook to a Tableau server. It will publish
# a specified workbook to the 'default' project of the given server.
#
Expand All @@ -11,7 +11,7 @@
# For more information, refer to the documentations on 'Publish Workbook'
# (https://onlinehelp.tableau.com/current/api/rest_api/en-us/help.htm)
#
# To run the script, you must have installed Python 2.7.9 or later.
# To run the script, you must have installed Python 2.7.X or 3.3 and later.
####

import tableauserverclient as TSC
Expand Down Expand Up @@ -45,7 +45,7 @@
# Step 3: If default project is found, form a new workbook item and publish.
if default_project is not None:
new_workbook = TSC.WorkbookItem(default_project.id)
new_workbook = server.workbooks.publish(new_workbook, args.filepath, server.PublishMode.Overwrite)
new_workbook = server.workbooks.publish(new_workbook, args.filepath, TSC.Server.PublishMode.Overwrite)
print("Workbook published. ID: {0}".format(new_workbook.id))
else:
error = "The default project could not be found."
Expand Down
5 changes: 1 addition & 4 deletions samples/set_http_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
# This script demonstrates how to set http options. It will set the option
# to not verify SSL certificate, and query all workbooks on site.
#
# For more information, refer to the documentation on 'Publish Workbook'
# (https://onlinehelp.tableau.com/current/api/rest_api/en-us/help.htm)
#
# To run the script, you must have installed Python 2.7.9 or later.
# To run the script, you must have installed Python 2.7.X or 3.3 and later.
####

import tableauserverclient as TSC
Expand Down