/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/Model/session.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/Model/session.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1268 by bh, Fri Jun 20 16:10:12 2003 UTC revision 1282 by bh, Mon Jun 23 09:47:18 2003 UTC
# Line 201  class Session(TitledObject, Modifiable): Line 201  class Session(TitledObject, Modifiable):
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"""

Legend:
Removed from v.1268  
changed lines
  Added in v.1282

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26