SYMBOL INDEX (285 symbols across 17 files) FILE: docs/js/search.js function addContentToIndex (line 14) | function addContentToIndex() { function displaySearchHeading (line 24) | function displaySearchHeading(query) { function getRawSearchResults (line 30) | function getRawSearchResults(query) { function getResultBlurb (line 35) | function getResultBlurb(result_content) { function displaySearchResults (line 42) | function displaySearchResults(results) { FILE: samples/preserve-namespaces/preserve-namespaces.py function assertContainsUserNamespace (line 8) | def assertContainsUserNamespace(filename): FILE: tableaudocumentapi/connection.py class Connection (line 5) | class Connection(object): method __init__ (line 8) | def __init__(self, connxml): method __repr__ (line 26) | def __repr__(self): method from_attributes (line 30) | def from_attributes(cls, server, dbname, username, dbclass, port=None,... method dbname (line 50) | def dbname(self): method dbname (line 55) | def dbname(self, value): method server (line 70) | def server(self): method server (line 75) | def server(self, value): method username (line 90) | def username(self): method username (line 95) | def username(self, value): method authentication (line 110) | def authentication(self): method dbclass (line 114) | def dbclass(self): method dbclass (line 120) | def dbclass(self, value): method port (line 137) | def port(self): method port (line 142) | def port(self, value): method query_band (line 163) | def query_band(self): method query_band (line 168) | def query_band(self, value): method initial_sql (line 189) | def initial_sql(self): method initial_sql (line 194) | def initial_sql(self, value): method schema (line 215) | def schema(self): method schema (line 220) | def schema(self, value): method service (line 235) | def service(self): method service (line 240) | def service(self, value): FILE: tableaudocumentapi/datasource.py function _get_metadata_xml_for_field (line 16) | def _get_metadata_xml_for_field(root_xml, field_name): function _is_used_by_worksheet (line 23) | def _is_used_by_worksheet(names, field): class FieldDictionary (line 27) | class FieldDictionary(MultiLookupDict): method used_by_sheet (line 29) | def used_by_sheet(self, name): function _column_object_from_column_xml (line 40) | def _column_object_from_column_xml(root_xml, column_xml): function _column_object_from_metadata_xml (line 49) | def _column_object_from_metadata_xml(metadata_xml): function base36encode (line 54) | def base36encode(number): function _make_unique_name (line 76) | def _make_unique_name(dbclass): class ConnectionParser (line 82) | class ConnectionParser(object): method __init__ (line 85) | def __init__(self, datasource_xml, version): method _extract_federated_connections (line 89) | def _extract_federated_connections(self): method _extract_legacy_connection (line 96) | def _extract_legacy_connection(self): method get_connections (line 99) | def get_connections(self): class Datasource (line 109) | class Datasource(object): method __init__ (line 115) | def __init__(self, dsxml, filename=None): method from_file (line 133) | def from_file(cls, filename): method from_connections (line 140) | def from_connections(cls, caption, connections): method save (line 155) | def save(self): method save_as (line 171) | def save_as(self, new_filename): method name (line 186) | def name(self): method version (line 191) | def version(self): method caption (line 196) | def caption(self): method caption (line 201) | def caption(self, value): method caption (line 206) | def caption(self): method connections (line 211) | def connections(self): method clear_repository_location (line 215) | def clear_repository_location(self): method fields (line 221) | def fields(self): method _refresh_fields (line 227) | def _refresh_fields(self): method _get_all_fields (line 230) | def _get_all_fields(self): method _get_metadata_objects (line 240) | def _get_metadata_objects(self): method _get_column_objects (line 244) | def _get_column_objects(self): method _get_custom_sql (line 248) | def _get_custom_sql(self): method add_field (line 251) | def add_field(self, name, datatype, role, field_type, caption, hidden): method remove_field (line 281) | def remove_field(self, field): method calculations (line 300) | def calculations(self): method add_calculation (line 305) | def add_calculation(self, caption, formula, datatype, role, type, hidd... FILE: tableaudocumentapi/dbclass.py function is_valid_dbclass (line 60) | def is_valid_dbclass(dbclass): FILE: tableaudocumentapi/field.py function _find_metadata_record (line 30) | def _find_metadata_record(record, attrib): class Field (line 37) | class Field(object): method __init__ (line 40) | def __init__(self, column_xml=None, metadata_xml=None): method _initialize_from_column_xml (line 64) | def _initialize_from_column_xml(self, xmldata): method _initialize_from_metadata_xml (line 68) | def _initialize_from_metadata_xml(self, xmldata): method create_field_xml (line 76) | def create_field_xml(cls, caption, datatype, hidden, role, field_type,... method apply_metadata (line 90) | def apply_metadata(self, metadata_record): method add_used_in (line 94) | def add_used_in(self, name): method from_column_xml (line 98) | def from_column_xml(cls, xmldata): method from_metadata_xml (line 102) | def from_metadata_xml(cls, xmldata): method _apply_attribute (line 105) | def _apply_attribute(self, xmldata, attrib, default_func, read_name=No... method name (line 116) | def name(self): method id (line 132) | def id(self): method xml (line 137) | def xml(self): method pretty_xml (line 141) | def pretty_xml(self): method __str__ (line 149) | def __str__(self): method detailed_str (line 156) | def detailed_str(self): method caption (line 167) | def caption(self): method caption (line 172) | def caption(self, caption): method alias (line 185) | def alias(self): method alias (line 190) | def alias(self, alias): method datatype (line 203) | def datatype(self): method datatype (line 209) | def datatype(self, datatype): method hidden (line 222) | def hidden(self): method hidden (line 228) | def hidden(self, hidden): method role (line 241) | def role(self): method role (line 247) | def role(self, role): method type (line 260) | def type(self): method type (line 266) | def type(self, field_type): method add_alias (line 284) | def add_alias(self, key, value): method aliases (line 312) | def aliases(self): method is_quantitative (line 326) | def is_quantitative(self): method is_ordinal (line 333) | def is_ordinal(self): method is_nominal (line 340) | def is_nominal(self): method calculation (line 347) | def calculation(self): method calculation (line 352) | def calculation(self, new_calculation): method default_aggregation (line 371) | def default_aggregation(self): method description (line 376) | def description(self): method worksheets (line 381) | def worksheets(self): method _read_id (line 389) | def _read_id(xmldata): method _read_calculation (line 394) | def _read_calculation(xmldata): method _read_description (line 403) | def _read_description(xmldata): FILE: tableaudocumentapi/multilookup_dict.py function _resolve_value (line 7) | def _resolve_value(key, value): function _build_index (line 21) | def _build_index(key, d): class MultiLookupDict (line 28) | class MultiLookupDict(dict): method __init__ (line 29) | def __init__(self, args=None): method _populate_indexes (line 39) | def _populate_indexes(self): method _get_real_key (line 43) | def _get_real_key(self, key): method __setitem__ (line 51) | def __setitem__(self, key, value): method get (line 56) | def get(self, key, default_value=_no_default_value): method __getitem__ (line 64) | def __getitem__(self, key): FILE: tableaudocumentapi/property_decorators.py function argument_is_one_of (line 4) | def argument_is_one_of(*allowed_values): FILE: tableaudocumentapi/workbook.py class Workbook (line 7) | class Workbook(object): method __init__ (line 10) | def __init__(self, filename): method dashboards (line 38) | def dashboards(self): method datasources (line 42) | def datasources(self): method worksheets (line 46) | def worksheets(self): method filename (line 50) | def filename(self): method shapes (line 54) | def shapes(self): method save (line 57) | def save(self): method save_as (line 72) | def save_as(self, new_filename): method _prepare_datasource_index (line 87) | def _prepare_datasource_index(datasources): method _prepare_datasources (line 95) | def _prepare_datasources(xml_root): method _prepare_dashboards (line 110) | def _prepare_dashboards(xml_root): method _prepare_worksheets (line 124) | def _prepare_worksheets(xml_root, ds_index): method _prepare_shapes (line 147) | def _prepare_shapes(xml_root): FILE: tableaudocumentapi/xfile.py class TableauVersionNotSupportedException (line 13) | class TableauVersionNotSupportedException(Exception): class TableauInvalidFileException (line 17) | class TableauInvalidFileException(Exception): function xml_open (line 21) | def xml_open(filename, expected_root=None): function temporary_directory (line 50) | def temporary_directory(*args, **kwargs): function _register_all_namespaces (line 58) | def _register_all_namespaces(): function find_file_in_zip (line 63) | def find_file_in_zip(zip_file): function get_xml_from_archive (line 82) | def get_xml_from_archive(filename): function build_archive_file (line 90) | def build_archive_file(archive_contents, zip_file): function save_into_archive (line 104) | def save_into_archive(xml_tree, filename, new_filename=None): function _save_file (line 127) | def _save_file(container_file, xml_tree, new_filename=None): FILE: test/bvt.py class ConnectionParserTests (line 10) | class ConnectionParserTests(unittest.TestCase): method test_can_extract_legacy_connection (line 12) | def test_can_extract_legacy_connection(self): method test_can_extract_federated_connections (line 19) | def test_can_extract_federated_connections(self): class ConnectionModelTests (line 27) | class ConnectionModelTests(unittest.TestCase): method setUp (line 29) | def setUp(self): method test_can_read_attributes_from_connection (line 32) | def test_can_read_attributes_from_connection(self): method test_can_write_attributes_to_connection (line 43) | def test_can_write_attributes_to_connection(self): method test_can_delete_port_from_connection (line 58) | def test_can_delete_port_from_connection(self): method test_can_delete_initial_sql_from_connection (line 64) | def test_can_delete_initial_sql_from_connection(self): method test_can_delete_query_band_from_connection (line 70) | def test_can_delete_query_band_from_connection(self): method test_bad_dbclass_rasies_attribute_error (line 76) | def test_bad_dbclass_rasies_attribute_error(self): method test_can_create_connection_from_scratch (line 83) | def test_can_create_connection_from_scratch(self): method test_can_create_oracle_connection_from_scratch (line 92) | def test_can_create_oracle_connection_from_scratch(self): method test_can_create_datasource_from_connections (line 99) | def test_can_create_datasource_from_connections(self): class ConnectionParserInComplicatedWorkbooks (line 112) | class ConnectionParserInComplicatedWorkbooks(unittest.TestCase): method setUp (line 114) | def setUp(self): method tearDown (line 119) | def tearDown(self): method test_can_mixed_connections_workbook (line 123) | def test_can_mixed_connections_workbook(self): class DatasourceModelTests (line 132) | class DatasourceModelTests(unittest.TestCase): method setUp (line 134) | def setUp(self): method tearDown (line 139) | def tearDown(self): method test_can_extract_datasource_from_file (line 143) | def test_can_extract_datasource_from_file(self): method test_can_extract_connection (line 148) | def test_can_extract_connection(self): method test_can_save_tds (line 153) | def test_can_save_tds(self): method test_save_has_xml_declaration (line 161) | def test_save_has_xml_declaration(self): class DatasourceModelV10Tests (line 173) | class DatasourceModelV10Tests(unittest.TestCase): method setUp (line 175) | def setUp(self): method tearDown (line 180) | def tearDown(self): method test_can_extract_datasource_from_file (line 184) | def test_can_extract_datasource_from_file(self): method test_can_extract_connection (line 189) | def test_can_extract_connection(self): method test_can_save_tds (line 194) | def test_can_save_tds(self): method test_can_save_as_tds (line 202) | def test_can_save_as_tds(self): class DatasourceModelV10TDSXTests (line 221) | class DatasourceModelV10TDSXTests(unittest.TestCase): method setUp (line 223) | def setUp(self): method tearDown (line 228) | def tearDown(self): method test_can_open_tdsx (line 232) | def test_can_open_tdsx(self): method test_can_open_tdsx_and_save_changes (line 237) | def test_can_open_tdsx_and_save_changes(self): method test_can_open_tdsx_and_save_as_changes (line 246) | def test_can_open_tdsx_and_save_as_changes(self): class WorkbookModelTests (line 258) | class WorkbookModelTests(unittest.TestCase): method setUp (line 260) | def setUp(self): method tearDown (line 265) | def tearDown(self): method test_can_extract_datasource (line 269) | def test_can_extract_datasource(self): method test_can_get_worksheets (line 276) | def test_can_get_worksheets(self): method test_has_filename (line 280) | def test_has_filename(self): method test_can_update_datasource_connection_and_save (line 284) | def test_can_update_datasource_connection_and_save(self): class WorkbookModelV10Tests (line 294) | class WorkbookModelV10Tests(unittest.TestCase): method setUp (line 296) | def setUp(self): method tearDown (line 301) | def tearDown(self): method test_can_extract_datasourceV10 (line 305) | def test_can_extract_datasourceV10(self): method test_can_update_datasource_connection_and_saveV10 (line 314) | def test_can_update_datasource_connection_and_saveV10(self): method test_save_has_xml_declaration (line 324) | def test_save_has_xml_declaration(self): class WorkbookModelV10TWBXTests (line 336) | class WorkbookModelV10TWBXTests(unittest.TestCase): method setUp (line 338) | def setUp(self): method tearDown (line 343) | def tearDown(self): method test_can_open_twbx (line 347) | def test_can_open_twbx(self): method test_can_open_twbx_and_save_changes (line 352) | def test_can_open_twbx_and_save_changes(self): method test_can_open_twbx_and_save_as_changes (line 361) | def test_can_open_twbx_and_save_as_changes(self): class EmptyWorkbookWillLoad (line 374) | class EmptyWorkbookWillLoad(unittest.TestCase): method test_no_exceptions_thrown (line 376) | def test_no_exceptions_thrown(self): class LoadOnlyValidFileTypes (line 381) | class LoadOnlyValidFileTypes(unittest.TestCase): method test_exception_when_workbook_given_tdsx (line 383) | def test_exception_when_workbook_given_tdsx(self): method test_exception_when_datasource_given_twbx (line 387) | def test_exception_when_datasource_given_twbx(self): class SupportedWorkbookVersions (line 392) | class SupportedWorkbookVersions(unittest.TestCase): method test_82_workbook_throws_exception (line 394) | def test_82_workbook_throws_exception(self): FILE: test/test_datasource.py class DataSourceFieldsTDS (line 25) | class DataSourceFieldsTDS(unittest.TestCase): method setUp (line 27) | def setUp(self): method cleanUp (line 31) | def cleanUp(self): method get_temp_file (line 38) | def get_temp_file(self, filename): method test_datasource_returns_correct_fields (line 43) | def test_datasource_returns_correct_fields(self): method test_datasource_returns_calculation_from_fields (line 47) | def test_datasource_returns_calculation_from_fields(self): method test_datasource_uses_metadata_record (line 50) | def test_datasource_uses_metadata_record(self): method test_datasource_column_name_contains_apostrophy (line 53) | def test_datasource_column_name_contains_apostrophy(self): method test_datasource_field_can_get_caption (line 56) | def test_datasource_field_can_get_caption(self): method test_datasource_field_caption_can_be_used_to_query (line 60) | def test_datasource_field_caption_can_be_used_to_query(self): method test_datasource_field_is_nominal (line 63) | def test_datasource_field_is_nominal(self): method test_datasource_field_is_quantitative (line 66) | def test_datasource_field_is_quantitative(self): method test_datasource_field_is_ordinal (line 69) | def test_datasource_field_is_ordinal(self): method test_datasource_field_datatype (line 72) | def test_datasource_field_datatype(self): method test_datasource_field_role (line 75) | def test_datasource_field_role(self): method test_datasource_field_description (line 78) | def test_datasource_field_description(self): method test_datasource_caption (line 83) | def test_datasource_caption(self): method test_datasource_can_set_caption (line 88) | def test_datasource_can_set_caption(self): method test_datasource_can_remove_caption (line 98) | def test_datasource_can_remove_caption(self): method test_datasource_clear_repository_location (line 107) | def test_datasource_clear_repository_location(self): class DataSourceFieldsTWB (line 121) | class DataSourceFieldsTWB(unittest.TestCase): method setUp (line 123) | def setUp(self): method test_datasource_fields_loaded_in_workbook (line 128) | def test_datasource_fields_loaded_in_workbook(self): class DataSourceFieldsFoundIn (line 133) | class DataSourceFieldsFoundIn(unittest.TestCase): method setUp (line 135) | def setUp(self): method test_datasource_fields_found_in_returns_fields (line 140) | def test_datasource_fields_found_in_returns_fields(self): method test_datasource_fields_found_in_does_not_return_fields_not_used_in_worksheet (line 146) | def test_datasource_fields_found_in_does_not_return_fields_not_used_in... method test_datasource_fields_found_in_returns_multiple_fields (line 152) | def test_datasource_fields_found_in_returns_multiple_fields(self): method test_datasource_fields_found_in_accepts_lists (line 160) | def test_datasource_fields_found_in_accepts_lists(self): FILE: test/test_field.py class FieldsUnitTest (line 21) | class FieldsUnitTest(unittest.TestCase): method test_field_throws_if_no_data_passed_in (line 22) | def test_field_throws_if_no_data_passed_in(self): class FindMetaDataRecordEdgeTest (line 27) | class FindMetaDataRecordEdgeTest(unittest.TestCase): class MockXmlWithNoFind (line 28) | class MockXmlWithNoFind(object): method find (line 29) | def find(self, *args, **kwargs): method test_find_metadata_record_returns_none (line 32) | def test_find_metadata_record_returns_none(self): class FieldsHandleUnicode (line 36) | class FieldsHandleUnicode(unittest.TestCase): method test_description_unicode (line 37) | def test_description_unicode(self): FILE: test/test_field_change.py class TestFieldChange (line 52) | class TestFieldChange(unittest.TestCase): method setUp (line 54) | def setUp(self): method current_hash (line 57) | def current_hash(self): method check_state_change (line 66) | def check_state_change(self, should_change, msg, field_name): method test_change_values (line 86) | def test_change_values(self): method test_change_values_fail (line 103) | def test_change_values_fail(self): method test_remove_field (line 124) | def test_remove_field(self): method test_change_aliases (line 134) | def test_change_aliases(self): method test_calculation_base (line 152) | def test_calculation_base(self): method test_calculation_change (line 166) | def test_calculation_change(self): method test_calculation_new (line 181) | def test_calculation_new(self): method test_calculation_remove (line 189) | def test_calculation_remove(self): method tearDown (line 201) | def tearDown(self): FILE: test/test_multidict.py class MLDTests (line 8) | class MLDTests(unittest.TestCase): method setUp (line 9) | def setUp(self): method test_multilookupdict_can_be_empty (line 25) | def test_multilookupdict_can_be_empty(self): method test_multilookupdict_name_only (line 29) | def test_multilookupdict_name_only(self): method test_multilookupdict_alias_overrides_everything (line 33) | def test_multilookupdict_alias_overrides_everything(self): method test_mutlilookupdict_caption_overrides_id (line 37) | def test_mutlilookupdict_caption_overrides_id(self): method test_mutlilookupdict_can_still_find_id_even_with_alias (line 41) | def test_mutlilookupdict_can_still_find_id_even_with_alias(self): method test_mutlilookupdict_can_still_find_caption_even_with_alias (line 45) | def test_mutlilookupdict_can_still_find_caption_even_with_alias(self): method test_mutlilookupdict_can_still_find_id_even_with_caption (line 49) | def test_mutlilookupdict_can_still_find_id_even_with_caption(self): method test_multilookupdict_gives_key_error_on_invalid_key (line 53) | def test_multilookupdict_gives_key_error_on_invalid_key(self): method test_multilookupdict_get_returns_default_value (line 60) | def test_multilookupdict_get_returns_default_value(self): method test_multilookupdict_get_returns_value (line 65) | def test_multilookupdict_get_returns_value(self): method test_multilookupdict_can_set_item (line 69) | def test_multilookupdict_can_set_item(self): method test_multilookupdict_can_set_new_item (line 74) | def test_multilookupdict_can_set_new_item(self): method test_multilookupdict_can_set_with_alias (line 78) | def test_multilookupdict_can_set_with_alias(self): FILE: test/test_workbook.py class EphemeralFields (line 26) | class EphemeralFields(unittest.TestCase): method test_ephemeral_fields_do_not_cause_errors (line 27) | def test_ephemeral_fields_do_not_cause_errors(self): class Shapes (line 32) | class Shapes(unittest.TestCase): method test_shape_exist (line 33) | def test_shape_exist(self): method test_shape_count (line 42) | def test_shape_count(self): class Dashboards (line 47) | class Dashboards(unittest.TestCase): method test_dashboards_setup (line 48) | def test_dashboards_setup(self): FILE: test/test_xfile.py class XFileEdgeTests (line 24) | class XFileEdgeTests(unittest.TestCase): method test_find_file_in_zip_no_xml_file (line 25) | def test_find_file_in_zip_no_xml_file(self): method test_only_find_twbs (line 29) | def test_only_find_twbs(self): class Namespacing (line 34) | class Namespacing(unittest.TestCase): method assertContainsUserNamespace (line 36) | def assertContainsUserNamespace(self, filename): method test_save_preserves_namespace_twb (line 48) | def test_save_preserves_namespace_twb(self): method demo_bug_ns_not_preserved_if_not_used (line 56) | def demo_bug_ns_not_preserved_if_not_used(self):