201 |
The list includes all tables that are indirectly opened through |
The list includes all tables that are indirectly opened through |
202 |
shape stores and the tables that have been opened explicitly. |
shape stores and the tables that have been opened explicitly. |
203 |
""" |
""" |
204 |
return self.tables + [store.Table() for store in self.ShapeStores()] |
tables = self.tables[:] |
205 |
|
ids = {} |
206 |
|
for t in tables: |
207 |
|
ids[id(t)] = 1 |
208 |
|
for store in self.ShapeStores(): |
209 |
|
t = store.Table() |
210 |
|
if id(t) not in ids: |
211 |
|
ids[id(t)] = 1 |
212 |
|
tables.append(t) |
213 |
|
return tables |
214 |
|
|
215 |
def UnreferencedTables(self): |
def UnreferencedTables(self): |
216 |
"""Return the tables that are not referenced by other data sources""" |
"""Return the tables that are not referenced by other data sources""" |