1 |
2003-04-25 Jonathan Coles <[email protected]> |
2003-04-29 Jonathan Coles <[email protected]> |
2 |
|
|
3 |
|
Add a visible parameter in the layer XML tag. The default value is |
4 |
|
"true". If anything other than "false" is specified we also assume |
5 |
|
"true". |
6 |
|
|
7 |
|
* Doc/thuban.dtd: Add visible parameter to a layer. |
8 |
|
|
9 |
|
* Thuban/Model/layer.py (BaseLayer.__init__): Change default value |
10 |
|
of visible from 1 to True. |
11 |
|
(Layer.__init__): Change default value of visible from 1 to True. |
12 |
|
|
13 |
|
* Thuban/Model/load.py (SessionLoader.start_layer): Read visible |
14 |
|
parameter. |
15 |
|
|
16 |
|
* Thuban/Model/save.py (SessionSaver.write_layer): Save visible |
17 |
|
parameter. |
18 |
|
|
19 |
|
* test/test_load.py: Add new test data contents_test_visible. |
20 |
|
(LoadSessionTest.setUp): save test data. |
21 |
|
(LoadSessionTest.testLayerVisibility): Test if the visible flag |
22 |
|
is loaded correctly. |
23 |
|
|
24 |
|
* test/test_save.py (SaveSessionTest.testSingleLayer): Add test |
25 |
|
for saving an invisible layer. |
26 |
|
|
27 |
|
2003-04-29 Jonathan Coles <[email protected]> |
28 |
|
|
29 |
|
* Thuban/UI/mainwindow.py (MainWindow.SetMap): Look up the |
30 |
|
legend dialog box and tell it to change its map to the one |
31 |
|
supplied to SetMap(). Fixes RTbug #1770. |
32 |
|
|
33 |
|
2003-04-29 Bernhard Herzog <[email protected]> |
34 |
|
|
35 |
|
Next step of table implementation. Introduce a transient database |
36 |
|
using SQLite that some of the data is copied to on demand. This |
37 |
|
allows us to do joins and other operations that require an index |
38 |
|
for good performance with reasonable efficiency. Thuban now needs |
39 |
|
SQLite 2.8.0 and pysqlite 0.4.1. Older versions may work but I |
40 |
|
haven't tested that. |
41 |
|
|
42 |
|
* Thuban/Model/transientdb.py: New. Transient database |
43 |
|
implementation. |
44 |
|
|
45 |
|
* test/test_transientdb.py: New. Tests for the transient DB |
46 |
|
classes. |
47 |
|
|
48 |
|
* Thuban/Model/session.py (AutoRemoveFile, AutoRemoveDir): New |
49 |
|
classes to help automatically remove temporary files and |
50 |
|
directories. |
51 |
|
(Session.__init__): New instance variables temp_dir for the |
52 |
|
temporary directory and transient_db for the SQLite database |
53 |
|
(Session.temp_directory): New. Create a temporary directory if not |
54 |
|
yet done and return its name. Use AutoRemoveDir to have it |
55 |
|
automatically deleted |
56 |
|
(Session.TransientDB): Instantiate the transient database if not |
57 |
|
done yet and return it. |
58 |
|
|
59 |
|
* Thuban/Model/data.py (ShapefileStore.__init__): Use an |
60 |
|
AutoTransientTable so that data is copied to the transient DB on |
61 |
|
demand. |
62 |
|
(SimpleStore): New class that simply combines a table and a |
63 |
|
shapefile |
64 |
|
|
65 |
|
* Thuban/Model/table.py (Table, DBFTable): Rename Table into |
66 |
|
DBFTable and update its doc-string to reflect the fact that this |
67 |
|
is only the table interface to a DBF file. Table is now an alias |
68 |
|
for DBFTable for temporary backwards compatibility. |
69 |
|
|
70 |
|
* Thuban/UI/application.py (ThubanApplication.OnExit): Make sure |
71 |
|
the last reference to the session goes away so that the temporary |
72 |
|
files are removed properly. |
73 |
|
|
74 |
|
* test/test_load.py (LoadSessionTest.tearDown): Remove the |
75 |
|
reference to the session to make sure the temporary files are |
76 |
|
removed. |
77 |
|
|
78 |
|
2003-04-29 Bernhard Herzog <[email protected]> |
79 |
|
|
80 |
|
* Thuban/Model/load.py (XMLReader.__init__, XMLReader.read): Turn |
81 |
|
the __parser instance variable into a normal local variable in |
82 |
|
read. It's only used there and read will never be called more than |
83 |
|
once. Plus it introduces a reference cycle that keeps can keep the |
84 |
|
session object alive for a long time. |
85 |
|
|
86 |
|
2003-04-29 Jonathan Coles <[email protected]> |
87 |
|
|
88 |
* Thuban/Model/proj.py (Projection): Removed Set*() methods to make |
* Thuban/Model/proj.py (Projection): Removed Set*() methods to make |
89 |
Projection an immutable item. Fixes RTbug #1825. |
Projection an immutable item. Fixes RTbug #1825. |