Skip to content

Commit

Permalink
Merge pull request #105 from bryantbhowell/5.2.1
Browse files Browse the repository at this point in the history
5.2.1 - fixes error in permissions settings code
  • Loading branch information
Bryant Howell authored Mar 11, 2021
2 parents 1cb0b69 + 5b724e5 commit 42dda58
Show file tree
Hide file tree
Showing 68 changed files with 6 additions and 6 deletions.
Empty file modified .gitattributes
100644 → 100755
Empty file.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified .idea/vcs.xml
100644 → 100755
Empty file.
Empty file modified License.txt
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified __init__.py
100644 → 100755
Empty file.
Empty file modified examples/archive_site.py
100644 → 100755
Empty file.
Empty file modified examples/create_site_sample.py
100644 → 100755
Empty file.
Empty file modified examples/hyper_api_samples.py
100644 → 100755
Empty file.
Empty file modified examples/limited_rest_api_wrapping_tableau_rest_api.py
100644 → 100755
Empty file.
Empty file modified examples/modifying_users_immediately_before_sso.py
100644 → 100755
Empty file.
Empty file modified examples/move_extracts_from_server_to_server.py
100644 → 100755
Empty file.
Empty file modified examples/permissions_auditing.py
100644 → 100755
Empty file.
Empty file modified examples/replicate_site_structure_sample.py
100644 → 100755
Empty file.
Empty file modified examples/template_publish_sample.py
100644 → 100755
Empty file.
Empty file.
Empty file modified examples/test_suite_all_querying_tableau_rest_api_connection.py
100644 → 100755
Empty file.
Empty file modified examples/test_suite_all_querying_tableau_server_rest.py
100644 → 100755
Empty file.
Empty file modified examples/test_suite_tableau_documents.py
100644 → 100755
Empty file.
Empty file modified examples/user_sync_sample.py
100644 → 100755
Empty file.
Empty file modified logger.py
100644 → 100755
Empty file.
Empty file modified logging_methods.py
100644 → 100755
Empty file.
Empty file modified requirements.txt
100644 → 100755
Empty file.
Empty file modified rest_tokens_manager.py
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion setup.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup(
name='tableau_tools',
python_requires='>=3.6',
version='5.2.0',
version='5.2.1',
packages=['tableau_tools', 'tableau_tools.tableau_rest_api', 'tableau_tools.tableau_documents',
'tableau_tools.examples', 'tableau_tools.tableau_rest_api.methods'],
url='https://github.com/bryantbhowell/tableau_tools',
Expand Down
Empty file modified tabcmd.py
100644 → 100755
Empty file.
Empty file modified tableau_documents/__init__.py
100644 → 100755
Empty file.
Empty file modified tableau_documents/hyper_file_generator.py
100644 → 100755
Empty file.
Empty file modified tableau_documents/table_relations.py
100644 → 100755
Empty file.
Empty file modified tableau_documents/tableau_columns.py
100644 → 100755
Empty file.
Empty file modified tableau_documents/tableau_connection.py
100644 → 100755
Empty file.
Empty file modified tableau_documents/tableau_datasource.py
100644 → 100755
Empty file.
Empty file modified tableau_documents/tableau_document.py
100644 → 100755
Empty file.
Empty file modified tableau_documents/tableau_file.py
100644 → 100755
Empty file.
Empty file modified tableau_documents/tableau_parameters.py
100644 → 100755
Empty file.
Empty file modified tableau_documents/tableau_workbook.py
100644 → 100755
Empty file.
Empty file modified tableau_emailer.py
100644 → 100755
Empty file.
Empty file modified tableau_exceptions.py
100644 → 100755
Empty file.
Empty file modified tableau_http.py
100644 → 100755
Empty file.
Empty file modified tableau_repository.py
100644 → 100755
Empty file.
Empty file modified tableau_rest_api/__init__.py
100644 → 100755
Empty file.
Empty file modified tableau_rest_api/methods/__init__.py
100644 → 100755
Empty file.
Empty file modified tableau_rest_api/methods/_lookups.py
100644 → 100755
Empty file.
Empty file modified tableau_rest_api/methods/alert.py
100644 → 100755
Empty file.
Empty file modified tableau_rest_api/methods/datasource.py
100644 → 100755
Empty file.
Empty file modified tableau_rest_api/methods/extract.py
100644 → 100755
Empty file.
Empty file modified tableau_rest_api/methods/favorites.py
100644 → 100755
Empty file.
Empty file modified tableau_rest_api/methods/flow.py
100644 → 100755
Empty file.
Empty file modified tableau_rest_api/methods/group.py
100644 → 100755
Empty file.
Empty file modified tableau_rest_api/methods/metadata.py
100644 → 100755
Empty file.
Empty file modified tableau_rest_api/methods/project.py
100644 → 100755
Empty file.
Empty file modified tableau_rest_api/methods/rest_api_base.py
100644 → 100755
Empty file.
Empty file modified tableau_rest_api/methods/revision.py
100644 → 100755
Empty file.
Empty file modified tableau_rest_api/methods/schedule.py
100644 → 100755
Empty file.
Empty file modified tableau_rest_api/methods/site.py
100644 → 100755
Empty file.
Empty file modified tableau_rest_api/methods/subscription.py
100644 → 100755
Empty file.
Empty file modified tableau_rest_api/methods/user.py
100644 → 100755
Empty file.
Empty file modified tableau_rest_api/methods/webhooks.py
100644 → 100755
Empty file.
Empty file modified tableau_rest_api/methods/workbook.py
100644 → 100755
Empty file.
Empty file modified tableau_rest_api/permissions.py
100644 → 100755
Empty file.
10 changes: 5 additions & 5 deletions tableau_rest_api/published_content.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -456,17 +456,17 @@ def set_permissions_by_permissions_obj_list(self, new_permissions_obj_list):
# Check if there are any existing capabilities on the object
if cur_obj.luid == new_permissions_obj.luid:
# Find if anything is set already, add to deletion queue
need_to_change = self.are_capabilities_obj_dicts_identical(
are_identical = self.are_capabilities_obj_dicts_identical(
cur_obj.get_capabilities_dict(), new_permissions_obj.get_capabilities_dict()
)
self.log("Existing permissions found for luid {}. Are there differences? {}".format(cur_obj.luid,
str(need_to_change)))
self.log("Existing permissions found for luid {}. Are they the same? {}".format(cur_obj.luid,
str(are_identical)))
# Delete all existing permissions
if need_to_change is True:
if are_identical is False:
self.log("Removing existing permissions for luid {}".format(cur_obj.luid))
self.delete_permissions_by_permissions_obj_list([cur_obj, ])

if need_to_change is False:
if are_identical is True:
self.log('No changes necessary, skipping update for quicker performance')
# self.end_log_block()
continue
Expand Down
Empty file modified tableau_rest_api/rest_json_request.py
100644 → 100755
Empty file.
Empty file modified tableau_rest_api/rest_xml_request.py
100644 → 100755
Empty file.
Empty file modified tableau_rest_api/sort.py
100644 → 100755
Empty file.
Empty file modified tableau_rest_api/url_filter.py
100644 → 100755
Empty file.
Empty file modified tableau_rest_api_connection.py
100644 → 100755
Empty file.
Empty file modified tableau_rest_xml.py
100644 → 100755
Empty file.
Empty file modified tableau_server_rest.py
100644 → 100755
Empty file.

0 comments on commit 42dda58

Please sign in to comment.