diff --git a/tableauserverclient/datetime_helpers.py b/tableauserverclient/datetime_helpers.py index d15a3a801..95041f8e1 100644 --- a/tableauserverclient/datetime_helpers.py +++ b/tableauserverclient/datetime_helpers.py @@ -1,6 +1,8 @@ import datetime -# This code below is from the python documentation for tzinfo: https://docs.python.org/2.3/lib/datetime-tzinfo.html +# This code below is from the python documentation for +# tzinfo: https://docs.python.org/2.3/lib/datetime-tzinfo.html + ZERO = datetime.timedelta(0) HOUR = datetime.timedelta(hours=1) diff --git a/tableauserverclient/models/column_item.py b/tableauserverclient/models/column_item.py index 475dd0e2a..9bf198220 100644 --- a/tableauserverclient/models/column_item.py +++ b/tableauserverclient/models/column_item.py @@ -1,7 +1,6 @@ import xml.etree.ElementTree as ET -from .property_decorators import property_is_enum, property_not_empty -from .exceptions import UnpopulatedPropertyError +from .property_decorators import property_not_empty class ColumnItem(object): diff --git a/tableauserverclient/models/connection_item.py b/tableauserverclient/models/connection_item.py index 829564839..8f923fecb 100644 --- a/tableauserverclient/models/connection_item.py +++ b/tableauserverclient/models/connection_item.py @@ -32,8 +32,10 @@ def connection_type(self): return self._connection_type def __repr__(self): - return ""\ - .format(**self.__dict__) + return ( + "".format(**self.__dict__) + ) @classmethod def from_response(cls, resp, ns): @@ -76,11 +78,13 @@ def from_xml_element(cls, parsed_response, ns): connection_item.server_address = connection_xml.get('serverAddress', None) connection_item.server_port = connection_xml.get('serverPort', None) - connection_credentials = connection_xml.find('.//t:connectionCredentials', namespaces=ns) + connection_credentials = connection_xml.find( + './/t:connectionCredentials', namespaces=ns) if connection_credentials is not None: - connection_item.connection_credentials = ConnectionCredentials.from_xml_element(connection_credentials) + connection_item.connection_credentials = ConnectionCredentials.from_xml_element( + connection_credentials) return all_connection_items diff --git a/tableauserverclient/models/data_acceleration_report_item.py b/tableauserverclient/models/data_acceleration_report_item.py index 2f056d0c4..2b443a3d1 100644 --- a/tableauserverclient/models/data_acceleration_report_item.py +++ b/tableauserverclient/models/data_acceleration_report_item.py @@ -21,10 +21,6 @@ def site(self): def sheet_uri(self): return self._sheet_uri - @property - def site(self): - return self._site - @property def unaccelerated_session_count(self): return self._unaccelerated_session_count diff --git a/tableauserverclient/models/database_item.py b/tableauserverclient/models/database_item.py index 9aecca6cc..5a7e74737 100644 --- a/tableauserverclient/models/database_item.py +++ b/tableauserverclient/models/database_item.py @@ -1,7 +1,5 @@ import xml.etree.ElementTree as ET -from .permissions_item import Permission - from .property_decorators import property_is_enum, property_not_empty, property_is_boolean from .exceptions import UnpopulatedPropertyError diff --git a/tableauserverclient/models/flow_item.py b/tableauserverclient/models/flow_item.py index 790000df2..c978d8175 100644 --- a/tableauserverclient/models/flow_item.py +++ b/tableauserverclient/models/flow_item.py @@ -1,6 +1,6 @@ import xml.etree.ElementTree as ET from .exceptions import UnpopulatedPropertyError -from .property_decorators import property_not_nullable, property_is_boolean +from .property_decorators import property_not_nullable from .tag_item import TagItem from ..datetime_helpers import parse_datetime import copy diff --git a/tableauserverclient/models/interval_item.py b/tableauserverclient/models/interval_item.py index 484ee709f..cbc148e88 100644 --- a/tableauserverclient/models/interval_item.py +++ b/tableauserverclient/models/interval_item.py @@ -173,7 +173,7 @@ def interval(self, interval_value): try: if not (1 <= int(interval_value) <= 31): raise ValueError(error) - except ValueError as e: + except ValueError: if interval_value != "LastDay": raise ValueError(error) diff --git a/tableauserverclient/models/job_item.py b/tableauserverclient/models/job_item.py index 6ad7f0256..58d1f1396 100644 --- a/tableauserverclient/models/job_item.py +++ b/tableauserverclient/models/job_item.py @@ -1,7 +1,5 @@ import xml.etree.ElementTree as ET from ..datetime_helpers import parse_datetime -from .target import Target -from ..datetime_helpers import parse_datetime class JobItem(object): diff --git a/tableauserverclient/models/pagination_item.py b/tableauserverclient/models/pagination_item.py index 98d6b42f9..a1f5409e3 100644 --- a/tableauserverclient/models/pagination_item.py +++ b/tableauserverclient/models/pagination_item.py @@ -31,10 +31,10 @@ def from_response(cls, resp, ns): return pagination_item @classmethod - def from_single_page_list(cls, l): + def from_single_page_list(cls, single_page_list): item = cls() item._page_number = 1 - item._page_size = len(l) - item._total_available = len(l) + item._page_size = len(single_page_list) + item._total_available = len(single_page_list) return item diff --git a/tableauserverclient/models/personal_access_token_auth.py b/tableauserverclient/models/personal_access_token_auth.py index 875f68c48..13a2391b8 100644 --- a/tableauserverclient/models/personal_access_token_auth.py +++ b/tableauserverclient/models/personal_access_token_auth.py @@ -8,7 +8,12 @@ def __init__(self, token_name, personal_access_token, site_id=''): @property def credentials(self): - return {'personalAccessTokenName': self.token_name, 'personalAccessTokenSecret': self.personal_access_token} + return { + 'personalAccessTokenName': self.token_name, + 'personalAccessTokenSecret': self.personal_access_token + } def __repr__(self): - return "".format(self.token_name, self.personal_access_token) + return "".format( + self.token_name, self.personal_access_token + ) diff --git a/tableauserverclient/models/project_item.py b/tableauserverclient/models/project_item.py index 15223e695..d6aece83b 100644 --- a/tableauserverclient/models/project_item.py +++ b/tableauserverclient/models/project_item.py @@ -77,9 +77,9 @@ def name(self, value): def is_default(self): return self.name.lower() == 'default' - def _parse_common_tags(self, project_xml): + def _parse_common_tags(self, project_xml, ns): if not isinstance(project_xml, ET.Element): - project_xml = ET.fromstring(project_xml).find('.//t:project', namespaces=NAMESPACE) + project_xml = ET.fromstring(project_xml).find('.//t:project', namespaces=ns) if project_xml is not None: (_, name, description, content_permissions, parent_id) = self._parse_element(project_xml) diff --git a/tableauserverclient/models/subscription_item.py b/tableauserverclient/models/subscription_item.py index 5a99fefc2..1a93c60d2 100644 --- a/tableauserverclient/models/subscription_item.py +++ b/tableauserverclient/models/subscription_item.py @@ -1,5 +1,4 @@ import xml.etree.ElementTree as ET -from .exceptions import UnpopulatedPropertyError from .target import Target diff --git a/tableauserverclient/models/table_item.py b/tableauserverclient/models/table_item.py index 8d8f63674..2f00ef2b7 100644 --- a/tableauserverclient/models/table_item.py +++ b/tableauserverclient/models/table_item.py @@ -1,9 +1,6 @@ import xml.etree.ElementTree as ET -from .permissions_item import Permission -from .column_item import ColumnItem - -from .property_decorators import property_is_enum, property_not_empty, property_is_boolean +from .property_decorators import property_not_empty, property_is_boolean from .exceptions import UnpopulatedPropertyError diff --git a/tableauserverclient/models/task_item.py b/tableauserverclient/models/task_item.py index 780412af9..2f3e6f3aa 100644 --- a/tableauserverclient/models/task_item.py +++ b/tableauserverclient/models/task_item.py @@ -36,7 +36,6 @@ def from_response(cls, xml, ns, task_type=Type.ExtractRefresh): @classmethod def _parse_element(cls, element, ns): - schedule_id = None schedule_item = None target = None last_run_at = None diff --git a/tableauserverclient/models/webhook_item.py b/tableauserverclient/models/webhook_item.py index 90fdd4ba2..57bcfeaa4 100644 --- a/tableauserverclient/models/webhook_item.py +++ b/tableauserverclient/models/webhook_item.py @@ -1,10 +1,5 @@ import xml.etree.ElementTree as ET -from .exceptions import UnpopulatedPropertyError -from .property_decorators import property_not_nullable, property_is_boolean, property_is_data_acceleration_config -from .tag_item import TagItem -from .view_item import ViewItem -from .permissions_item import PermissionsRule -from ..datetime_helpers import parse_datetime + import re @@ -86,4 +81,5 @@ def _parse_element(webhook_xml, ns): return id, name, url, event, owner_id def __repr__(self): - return "".format(self.id, self.name, self.url, self.event) + return "".format( + self.id, self.name, self.url, self.event) diff --git a/tableauserverclient/server/endpoint/data_acceleration_report_endpoint.py b/tableauserverclient/server/endpoint/data_acceleration_report_endpoint.py index b84a38643..fcc2806c6 100644 --- a/tableauserverclient/server/endpoint/data_acceleration_report_endpoint.py +++ b/tableauserverclient/server/endpoint/data_acceleration_report_endpoint.py @@ -18,7 +18,8 @@ def __init__(self, parent_srv): @property def baseurl(self): - return "{0}/sites/{1}/dataAccelerationReport".format(self.parent_srv.baseurl, self.parent_srv.site_id) + return "{0}/sites/{1}/dataAccelerationReport".format( + self.parent_srv.baseurl, self.parent_srv.site_id) @api(version="3.8") def get(self, req_options=None): diff --git a/tableauserverclient/server/endpoint/databases_endpoint.py b/tableauserverclient/server/endpoint/databases_endpoint.py index d0fd24c78..85dd406ef 100644 --- a/tableauserverclient/server/endpoint/databases_endpoint.py +++ b/tableauserverclient/server/endpoint/databases_endpoint.py @@ -3,7 +3,7 @@ from .permissions_endpoint import _PermissionsEndpoint from .default_permissions_endpoint import _DefaultPermissionsEndpoint -from .. import RequestFactory, DatabaseItem, PaginationItem, PermissionsRule, Permission +from .. import RequestFactory, DatabaseItem, TableItem, PaginationItem, Permission import logging diff --git a/tableauserverclient/server/endpoint/datasources_endpoint.py b/tableauserverclient/server/endpoint/datasources_endpoint.py index 44dea28df..7a00157fe 100644 --- a/tableauserverclient/server/endpoint/datasources_endpoint.py +++ b/tableauserverclient/server/endpoint/datasources_endpoint.py @@ -1,14 +1,12 @@ from .endpoint import Endpoint, api, parameter_added_in from .exceptions import InternalServerError, MissingRequiredFieldError -from .endpoint import api, parameter_added_in, Endpoint from .permissions_endpoint import _PermissionsEndpoint -from .exceptions import MissingRequiredFieldError from .fileuploads_endpoint import Fileuploads from .resource_tagger import _ResourceTagger from .. import RequestFactory, DatasourceItem, PaginationItem, ConnectionItem from ...filesys_helpers import to_filename, make_download_path -from ...models.tag_item import TagItem from ...models.job_item import JobItem + import os import logging import copy @@ -129,7 +127,8 @@ def update(self, datasource_item): server_response = self.put_request(url, update_req) logger.info('Updated datasource item (ID: {0})'.format(datasource_item.id)) updated_datasource = copy.copy(datasource_item) - return updated_datasource._parse_common_elements(server_response.content, self.parent_srv.namespace) + return updated_datasource._parse_common_elements( + server_response.content, self.parent_srv.namespace) # Update datasource connections @api(version="2.3") diff --git a/tableauserverclient/server/endpoint/default_permissions_endpoint.py b/tableauserverclient/server/endpoint/default_permissions_endpoint.py index 0dff025a1..d435a03d6 100644 --- a/tableauserverclient/server/endpoint/default_permissions_endpoint.py +++ b/tableauserverclient/server/endpoint/default_permissions_endpoint.py @@ -3,7 +3,7 @@ from .. import RequestFactory from ...models import PermissionsRule -from .endpoint import Endpoint, api +from .endpoint import Endpoint from .exceptions import MissingRequiredFieldError @@ -11,13 +11,14 @@ class _DefaultPermissionsEndpoint(Endpoint): - ''' Adds default-permission model to another endpoint + """ Adds default-permission model to another endpoint Tableau default-permissions model applies only to databases and projects and then takes an object type in the uri to set the defaults. This class is meant to be instantated inside a parent endpoint which has these supported endpoints - ''' + """ + def __init__(self, parent_srv, owner_baseurl): super(_DefaultPermissionsEndpoint, self).__init__(parent_srv) diff --git a/tableauserverclient/server/endpoint/endpoint.py b/tableauserverclient/server/endpoint/endpoint.py index 2b2bca229..5e48b5cc2 100644 --- a/tableauserverclient/server/endpoint/endpoint.py +++ b/tableauserverclient/server/endpoint/endpoint.py @@ -74,7 +74,7 @@ def _check_status(self, server_response): # we convert this to a better exception and pass through the raw # response body raise NonXMLResponseError(server_response.content) - except Exception as e: + except Exception: # anything else re-raise here raise diff --git a/tableauserverclient/server/endpoint/flows_endpoint.py b/tableauserverclient/server/endpoint/flows_endpoint.py index 7bad807e4..44a110e7e 100644 --- a/tableauserverclient/server/endpoint/flows_endpoint.py +++ b/tableauserverclient/server/endpoint/flows_endpoint.py @@ -1,14 +1,12 @@ -from .endpoint import Endpoint, api, parameter_added_in +from .endpoint import Endpoint, api from .exceptions import InternalServerError, MissingRequiredFieldError -from .endpoint import api, parameter_added_in, Endpoint from .permissions_endpoint import _PermissionsEndpoint -from .exceptions import MissingRequiredFieldError from .fileuploads_endpoint import Fileuploads from .resource_tagger import _ResourceTagger from .. import RequestFactory, FlowItem, PaginationItem, ConnectionItem from ...filesys_helpers import to_filename, make_download_path -from ...models.tag_item import TagItem from ...models.job_item import JobItem + import os import logging import copy diff --git a/tableauserverclient/server/endpoint/groups_endpoint.py b/tableauserverclient/server/endpoint/groups_endpoint.py index 2428ff9be..e0acb4477 100644 --- a/tableauserverclient/server/endpoint/groups_endpoint.py +++ b/tableauserverclient/server/endpoint/groups_endpoint.py @@ -1,8 +1,8 @@ from .endpoint import Endpoint, api from .exceptions import MissingRequiredFieldError -from ...models.exceptions import UnpopulatedPropertyError from .. import RequestFactory, GroupItem, UserItem, PaginationItem from ..pager import Pager + import logging logger = logging.getLogger('tableau.endpoint.groups') diff --git a/tableauserverclient/server/endpoint/jobs_endpoint.py b/tableauserverclient/server/endpoint/jobs_endpoint.py index e70c9c313..d8bbe39c7 100644 --- a/tableauserverclient/server/endpoint/jobs_endpoint.py +++ b/tableauserverclient/server/endpoint/jobs_endpoint.py @@ -1,6 +1,7 @@ from .endpoint import Endpoint, api from .. import JobItem, BackgroundJobItem, PaginationItem from ..request_options import RequestOptionsBase + import logging try: diff --git a/tableauserverclient/server/endpoint/metadata_endpoint.py b/tableauserverclient/server/endpoint/metadata_endpoint.py index 002379407..900b16fb2 100644 --- a/tableauserverclient/server/endpoint/metadata_endpoint.py +++ b/tableauserverclient/server/endpoint/metadata_endpoint.py @@ -1,5 +1,6 @@ from .endpoint import Endpoint, api from .exceptions import GraphQLError + import logging import json diff --git a/tableauserverclient/server/endpoint/permissions_endpoint.py b/tableauserverclient/server/endpoint/permissions_endpoint.py index b28d6fa17..585fd0052 100644 --- a/tableauserverclient/server/endpoint/permissions_endpoint.py +++ b/tableauserverclient/server/endpoint/permissions_endpoint.py @@ -2,7 +2,7 @@ from .. import RequestFactory, PermissionsRule -from .endpoint import Endpoint, api +from .endpoint import Endpoint from .exceptions import MissingRequiredFieldError @@ -10,13 +10,14 @@ class _PermissionsEndpoint(Endpoint): - ''' Adds permission model to another endpoint + """ Adds permission model to another endpoint Tableau permissions model is identical between objects but they are nested under the parent object endpoint (i.e. permissions for workbooks are under /workbooks/:id/permission). This class is meant to be instantated inside a parent endpoint which has these supported endpoints - ''' + """ + def __init__(self, parent_srv, owner_baseurl): super(_PermissionsEndpoint, self).__init__(parent_srv) diff --git a/tableauserverclient/server/endpoint/projects_endpoint.py b/tableauserverclient/server/endpoint/projects_endpoint.py index f0eb92626..a7f22795c 100644 --- a/tableauserverclient/server/endpoint/projects_endpoint.py +++ b/tableauserverclient/server/endpoint/projects_endpoint.py @@ -3,7 +3,7 @@ from .permissions_endpoint import _PermissionsEndpoint from .default_permissions_endpoint import _DefaultPermissionsEndpoint -from .. import RequestFactory, ProjectItem, PaginationItem, PermissionsRule, Permission +from .. import RequestFactory, ProjectItem, PaginationItem, Permission import logging diff --git a/tableauserverclient/server/endpoint/schedules_endpoint.py b/tableauserverclient/server/endpoint/schedules_endpoint.py index 06fb7e408..29389c693 100644 --- a/tableauserverclient/server/endpoint/schedules_endpoint.py +++ b/tableauserverclient/server/endpoint/schedules_endpoint.py @@ -1,6 +1,6 @@ from .endpoint import Endpoint, api from .exceptions import MissingRequiredFieldError -from .. import RequestFactory, PaginationItem, ScheduleItem, WorkbookItem, DatasourceItem, TaskItem +from .. import RequestFactory, PaginationItem, ScheduleItem, TaskItem import logging import copy from collections import namedtuple diff --git a/tableauserverclient/server/endpoint/sites_endpoint.py b/tableauserverclient/server/endpoint/sites_endpoint.py index 6d67fe69e..8a6212a28 100644 --- a/tableauserverclient/server/endpoint/sites_endpoint.py +++ b/tableauserverclient/server/endpoint/sites_endpoint.py @@ -1,8 +1,9 @@ from .endpoint import Endpoint, api from .exceptions import MissingRequiredFieldError from .. import RequestFactory, SiteItem, PaginationItem -import logging + import copy +import logging logger = logging.getLogger('tableau.endpoint.sites') diff --git a/tableauserverclient/server/endpoint/subscriptions_endpoint.py b/tableauserverclient/server/endpoint/subscriptions_endpoint.py index 70422e208..00a7c6856 100644 --- a/tableauserverclient/server/endpoint/subscriptions_endpoint.py +++ b/tableauserverclient/server/endpoint/subscriptions_endpoint.py @@ -1,6 +1,6 @@ from .endpoint import Endpoint, api -from .exceptions import MissingRequiredFieldError from .. import RequestFactory, SubscriptionItem, PaginationItem + import logging logger = logging.getLogger('tableau.endpoint.subscriptions') diff --git a/tableauserverclient/server/endpoint/tables_endpoint.py b/tableauserverclient/server/endpoint/tables_endpoint.py index b8430a124..032f13016 100644 --- a/tableauserverclient/server/endpoint/tables_endpoint.py +++ b/tableauserverclient/server/endpoint/tables_endpoint.py @@ -1,10 +1,9 @@ from .endpoint import api, Endpoint from .exceptions import MissingRequiredFieldError from .permissions_endpoint import _PermissionsEndpoint -from .default_permissions_endpoint import _DefaultPermissionsEndpoint from ..pager import Pager -from .. import RequestFactory, TableItem, ColumnItem, PaginationItem, PermissionsRule, Permission +from .. import RequestFactory, TableItem, ColumnItem, PaginationItem import logging diff --git a/tableauserverclient/server/endpoint/tasks_endpoint.py b/tableauserverclient/server/endpoint/tasks_endpoint.py index d08209769..a3e5e7b34 100644 --- a/tableauserverclient/server/endpoint/tasks_endpoint.py +++ b/tableauserverclient/server/endpoint/tasks_endpoint.py @@ -1,6 +1,7 @@ from .endpoint import Endpoint, api from .exceptions import MissingRequiredFieldError from .. import TaskItem, PaginationItem, RequestFactory + import logging logger = logging.getLogger('tableau.endpoint.tasks') diff --git a/tableauserverclient/server/endpoint/users_endpoint.py b/tableauserverclient/server/endpoint/users_endpoint.py index 0949a5e5b..3ce1f16ab 100644 --- a/tableauserverclient/server/endpoint/users_endpoint.py +++ b/tableauserverclient/server/endpoint/users_endpoint.py @@ -2,8 +2,9 @@ from .exceptions import MissingRequiredFieldError from .. import RequestFactory, UserItem, WorkbookItem, PaginationItem from ..pager import Pager -import logging + import copy +import logging logger = logging.getLogger('tableau.endpoint.users') diff --git a/tableauserverclient/server/endpoint/views_endpoint.py b/tableauserverclient/server/endpoint/views_endpoint.py index 85ae70f93..7c8a4768e 100644 --- a/tableauserverclient/server/endpoint/views_endpoint.py +++ b/tableauserverclient/server/endpoint/views_endpoint.py @@ -2,10 +2,10 @@ from .exceptions import MissingRequiredFieldError from .resource_tagger import _ResourceTagger from .permissions_endpoint import _PermissionsEndpoint -from .. import RequestFactory, ViewItem, PaginationItem -from ...models.tag_item import TagItem -import logging +from .. import ViewItem, PaginationItem + from contextlib import closing +import logging logger = logging.getLogger('tableau.endpoint.views') diff --git a/tableauserverclient/server/endpoint/webhooks_endpoint.py b/tableauserverclient/server/endpoint/webhooks_endpoint.py index 4e69974d1..fe108a27d 100644 --- a/tableauserverclient/server/endpoint/webhooks_endpoint.py +++ b/tableauserverclient/server/endpoint/webhooks_endpoint.py @@ -1,8 +1,9 @@ -from .endpoint import Endpoint, api, parameter_added_in +from .endpoint import Endpoint, api from ...models import WebhookItem, PaginationItem from .. import RequestFactory import logging + logger = logging.getLogger('tableau.endpoint.webhooks') diff --git a/tableauserverclient/server/endpoint/workbooks_endpoint.py b/tableauserverclient/server/endpoint/workbooks_endpoint.py index 1559bc41b..555ed9806 100644 --- a/tableauserverclient/server/endpoint/workbooks_endpoint.py +++ b/tableauserverclient/server/endpoint/workbooks_endpoint.py @@ -1,11 +1,9 @@ from .endpoint import Endpoint, api, parameter_added_in from .exceptions import InternalServerError, MissingRequiredFieldError from .permissions_endpoint import _PermissionsEndpoint -from .exceptions import MissingRequiredFieldError from .fileuploads_endpoint import Fileuploads from .resource_tagger import _ResourceTagger from .. import RequestFactory, WorkbookItem, ConnectionItem, ViewItem, PaginationItem -from ...models.tag_item import TagItem from ...models.job_item import JobItem from ...filesys_helpers import to_filename, make_download_path diff --git a/tableauserverclient/server/pager.py b/tableauserverclient/server/pager.py index 75ac8be4e..0e2382fae 100644 --- a/tableauserverclient/server/pager.py +++ b/tableauserverclient/server/pager.py @@ -1,7 +1,6 @@ from functools import partial from . import RequestOptions -from . import Sort class Pager(object): diff --git a/tableauserverclient/server/request_factory.py b/tableauserverclient/server/request_factory.py index 87529b84f..a456682ef 100644 --- a/tableauserverclient/server/request_factory.py +++ b/tableauserverclient/server/request_factory.py @@ -1,11 +1,9 @@ -from ..datetime_helpers import format_datetime import xml.etree.ElementTree as ET -from functools import wraps from requests.packages.urllib3.fields import RequestField from requests.packages.urllib3.filepost import encode_multipart_formdata -from ..models import TaskItem, UserItem, GroupItem, PermissionsRule +from ..models import TaskItem def _add_multipart(parts): diff --git a/tableauserverclient/server/request_options.py b/tableauserverclient/server/request_options.py index af2ed27de..4dad4c1ea 100644 --- a/tableauserverclient/server/request_options.py +++ b/tableauserverclient/server/request_options.py @@ -83,6 +83,7 @@ def apply_query_params(self, url): class _FilterOptionsBase(RequestOptionsBase): """ Provide a basic implementation of adding view filters to the url """ + def __init__(self): self.view_filters = [] diff --git a/tableauserverclient/server/server.py b/tableauserverclient/server/server.py index 42accf722..37371d707 100644 --- a/tableauserverclient/server/server.py +++ b/tableauserverclient/server/server.py @@ -3,7 +3,7 @@ from .exceptions import NotSignedInError from ..namespace import Namespace from .endpoint import Sites, Views, Users, Groups, Workbooks, Datasources, Projects, Auth, \ - Schedules, ServerInfo, Tasks, ServerInfoEndpointNotFoundError, Subscriptions, Jobs, Metadata,\ + Schedules, ServerInfo, Tasks, Subscriptions, Jobs, Metadata,\ Databases, Tables, Flows, Webhooks, DataAccelerationReport from .endpoint.exceptions import EndpointUnavailableError, ServerInfoEndpointNotFoundError