1 |
2003-05-22 Bernhard Herzog <[email protected]> |
2003-05-22 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
Implement a way to discover dependencies between tables and |
4 |
|
shapestores. |
5 |
|
|
6 |
|
* Thuban/Model/transientdb.py (TransientTableBase.Dependencies) |
7 |
|
(TransientJoinedTable.Dependencies) |
8 |
|
(AutoTransientTable.SimpleQuery): New. Implement the dependencies |
9 |
|
interface |
10 |
|
(TransientJoinedTable.__init__): Keep tack of the original table |
11 |
|
objects in addition to the corresponding transient tables. |
12 |
|
|
13 |
|
* Thuban/Model/table.py (DBFTable.Dependencies) |
14 |
|
(MemoryTable.Dependencies): New. Implement the dependencies |
15 |
|
interface |
16 |
|
|
17 |
|
* Thuban/Model/data.py (ShapeTable): New. Helper class for |
18 |
|
ShapefileStore |
19 |
|
(ShapefileStore.__init__): Use ShapeTable instead of |
20 |
|
AutoTransientTable |
21 |
|
(ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings |
22 |
|
(ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor |
23 |
|
methods for filename and type |
24 |
|
(ShapefileStore.Dependencies): New. Implement the dependencies |
25 |
|
interface |
26 |
|
(DerivedShapeStore): New class to replace SimpleStore. The main |
27 |
|
difference to SimpleStore is that it depends not on a shapefile |
28 |
|
but another shapestore which expresses the dependencies a bit |
29 |
|
better |
30 |
|
(SimpleStore.__init__): Add deprecation warning. |
31 |
|
|
32 |
|
* test/test_dbf_table.py (TestDBFTable.test_dependencies): New. |
33 |
|
Test for the Dependencies method. |
34 |
|
|
35 |
|
* test/test_memory_table.py (TestMemoryTable.test_dependencies): |
36 |
|
New. Test for the Dependencies method. |
37 |
|
|
38 |
|
* test/test_transientdb.py |
39 |
|
(TestTransientTable.test_auto_transient_table_dependencies): New. |
40 |
|
Test for the Dependencies method. |
41 |
|
(TestTransientTable.test_transient_joined_table): Add test for the |
42 |
|
Dependencies method. |
43 |
|
|
44 |
|
* test/test_session.py (TestSessionSimple.setUp) |
45 |
|
(TestSessionSimple.tearDown): New. Implement a better way to |
46 |
|
destroy the sessions. |
47 |
|
(TestSessionSimple.test_initial_state) |
48 |
|
(TestSessionSimple.test_add_table): Bind session to self.session |
49 |
|
so that it's destroyed by tearDown |
50 |
|
(TestSessionSimple.test_open_shapefile): New. Test for |
51 |
|
OpenShapefile and the object it returns |
52 |
|
|
53 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
54 |
|
|
55 |
* Thuban/Model/session.py (Session.AddTable): New method to |
* Thuban/Model/session.py (Session.AddTable): New method to |
56 |
register tables with the session. |
register tables with the session. |
57 |
(Session.Tables): Return the tables registered with AddTable too. |
(Session.Tables): Return the tables registered with AddTable too. |