1 |
|
2003-05-26 Jan-Oliver Wagner <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py, |
4 |
|
Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py, |
5 |
|
Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py: |
6 |
|
Replace the true/false of wxWindows by True/False of Python 2.2.1. |
7 |
|
|
8 |
|
2003-05-26 Jan-Oliver Wagner <[email protected]> |
9 |
|
|
10 |
|
* Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is already |
11 |
|
a selection present, update the grid accordingly. |
12 |
|
|
13 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog |
14 |
|
resizeable and increase its initial size. |
15 |
|
|
16 |
|
2003-05-26 Frank Koormann <[email protected]> |
17 |
|
|
18 |
|
Table export functionality |
19 |
|
|
20 |
|
* Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width): |
21 |
|
Return width (in characters) for a column. |
22 |
|
(DBFTable.Precision, MemoryTable.Precision): Return decimal precision. |
23 |
|
(table_to_dbf): Write table to dbf file. |
24 |
|
(table_to_csv): Write table to csv file. |
25 |
|
|
26 |
|
* Thuban/Model/transientdb.py (TransientTableBase.Width, |
27 |
|
TransientTableBase.Precision): Return column width and precision. |
28 |
|
|
29 |
|
* Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf |
30 |
|
or table_to_csv depending on file selection. |
31 |
|
|
32 |
|
* test/test_dbf_table.py: |
33 |
|
Test table_to_dbf (extension of former part of test). |
34 |
|
|
35 |
|
* test/test_csv_table.py: |
36 |
|
Test table_to_csv. |
37 |
|
|
38 |
|
2003-05-23 Jan-Oliver Wagner <[email protected]> |
39 |
|
|
40 |
|
* Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings. |
41 |
|
Use QueryTableFrame instead of TableFrame. |
42 |
|
|
43 |
|
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the |
44 |
|
table window with 'Layer Table:' instead of 'Table:'. |
45 |
|
|
46 |
|
2003-05-23 Jan-Oliver Wagner <[email protected]> |
47 |
|
|
48 |
|
Give all tables a title via mix-in TitledObject.LayerShowTable |
49 |
|
|
50 |
|
* Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue' |
51 |
|
only if it exists. |
52 |
|
|
53 |
|
* Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject |
54 |
|
and call its init-method with a default title. Remove Title() method. |
55 |
|
|
56 |
|
* Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable, |
57 |
|
AutoTransientTable): mix-in TitledObject and call its init-method with |
58 |
|
a default title. Remove Title() method. |
59 |
|
|
60 |
|
2003-05-23 Bernhard Herzog <[email protected]> |
61 |
|
|
62 |
|
* Thuban/Model/session.py (Session.AddShapeStore): Define |
63 |
|
AddShapeStore analogously to AddTable. |
64 |
|
|
65 |
|
* test/test_session.py (TestSessionSimple.test_add_shapestore): |
66 |
|
New. Test for AddShapeStore |
67 |
|
|
68 |
|
2003-05-23 Jan-Oliver Wagner <[email protected]> |
69 |
|
|
70 |
|
Introducing QueryTableFrame and a very coarse ShowTable implementation. |
71 |
|
|
72 |
|
* Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the |
73 |
|
class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame. |
74 |
|
The latter implements the selection GUI without dependency on a layer. |
75 |
|
LayerTableFrame now is derived from QueryTableFrame and connects |
76 |
|
to a layer. |
77 |
|
|
78 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse |
79 |
|
implementation that still needs work. |
80 |
|
|
81 |
|
* Thuban/Model/layer.py (Layer.TreeInfo): Added filename. |
82 |
|
|
83 |
|
2003-05-22 Frank Koormann <[email protected]> |
84 |
|
|
85 |
|
* Thuban/Model/transientdb.py (TransientJoinedTable.__init__): |
86 |
|
Added "outer_join = False" as optional parameter. |
87 |
|
(TransientJoinedTable.create): If outer join is true, perform a |
88 |
|
"LEFT OUTER JOIN" instead of "JOIN", which preserves all records of |
89 |
|
the left table. Records not matching are filled with 0 / None. |
90 |
|
|
91 |
|
* Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join. |
92 |
|
(JoinDialog.OnJoin): Consider outer join check box. |
93 |
|
|
94 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
95 |
|
|
96 |
|
* Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a |
97 |
|
somewhat safer way. Storing the traceback in a local variable can |
98 |
|
lead to memory leaks |
99 |
|
|
100 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
101 |
|
|
102 |
|
* Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call |
103 |
|
the wxMessageDialog's Destroy() method. |
104 |
|
|
105 |
|
2003-05-22 Frank Koormann <[email protected]> |
106 |
|
|
107 |
|
* Thuban/UI/join.py (JoinDialog.__init__): Make use of |
108 |
|
TransientTable.Title() |
109 |
|
|
110 |
|
2003-05-22 Frank Koormann <[email protected]> |
111 |
|
|
112 |
|
Join Dialog, initial version. |
113 |
|
|
114 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print. |
115 |
|
|
116 |
|
* Thuban/UI/join.py (JoinDialog): Functional implementation of |
117 |
|
former framework. Renamed Table1/Table2 to LeftTable/RightTable |
118 |
|
in all occurences. |
119 |
|
|
120 |
|
* Thuban/Model/transientdb.py (TransientJoinedTable.__doc__): |
121 |
|
Typo fixed. |
122 |
|
|
123 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
124 |
|
|
125 |
|
Give the tables titles so that the GUI can display more meaningful |
126 |
|
names. For now the titles are fixed but depend on e.g. filenames |
127 |
|
or the titles of the joined tables. |
128 |
|
|
129 |
|
* Thuban/Model/transientdb.py (TransientTable.Title) |
130 |
|
(TransientJoinedTable.Title, AutoTransientTable.Title): New. |
131 |
|
|
132 |
|
* Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New. |
133 |
|
|
134 |
|
* test/test_transientdb.py |
135 |
|
(TestTransientTable.test_auto_transient_table_title): New. Test |
136 |
|
for the Title method |
137 |
|
(TestTransientTable.test_transient_joined_table) |
138 |
|
(TestTransientTable.test_transient_table): Add test for the Title |
139 |
|
methods |
140 |
|
|
141 |
|
* test/test_memory_table.py (TestMemoryTable.test_title): New. |
142 |
|
Test for the Title method |
143 |
|
|
144 |
|
* test/test_dbf_table.py (TestDBFTable.test_title): New. Test for |
145 |
|
the Title method |
146 |
|
|
147 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
148 |
|
|
149 |
|
* test/test_layer.py (TestLayer.setUp, TestLayer.tearDown): |
150 |
|
Provide a better way to destroy the layers |
151 |
|
(TestLayer.test_base_layer, TestLayer.test_arc_layer) |
152 |
|
(TestLayer.test_point_layer, TestLayer.test_empty_layer) |
153 |
|
(TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use |
154 |
|
the new way to destroy the layers. |
155 |
|
(TestLayer.test_derived_store): New. Test for using a layer with a |
156 |
|
DerivedShapeStore |
157 |
|
|
158 |
|
* Thuban/Model/layer.py (Layer.SetShapeStore): Only set the |
159 |
|
filename if the shape store actually has one. |
160 |
|
|
161 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
162 |
|
|
163 |
|
* Thuban/Model/table.py (DBFTable.FileName): New. Accessor method |
164 |
|
for the filename |
165 |
|
|
166 |
|
* test/test_dbf_table.py (TestDBFTable.test_filename): New. Test |
167 |
|
for the FileName method |
168 |
|
(TestDBFTableWriting.test_write): Fix spelling of filename |
169 |
|
|
170 |
|
2003-05-22 Thomas Koester <[email protected]> |
171 |
|
|
172 |
|
* Thuban/Model/range.py, test/test_range.py: Brought over new Range |
173 |
|
from SciParam that now really is immutable. |
174 |
|
|
175 |
|
2003-05-22 Frank Koormann <[email protected]> |
176 |
|
|
177 |
|
Layer Top/Bottom placement added to legend. |
178 |
|
|
179 |
|
* Thuban/UI/legend.py |
180 |
|
(LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods |
181 |
|
bound to tool events. |
182 |
|
(LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom): |
183 |
|
New, methods binding the event methods with the map methods. |
184 |
|
|
185 |
|
* Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place |
186 |
|
layer at top/bottom of layer stack. |
187 |
|
|
188 |
|
* Resources/Bitmaps/top_layer.xpm: New button icon. |
189 |
|
|
190 |
|
* Resources/Bitmaps/bottom_layer.xpm: New button icon. |
191 |
|
|
192 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
193 |
|
|
194 |
|
* Thuban/Model/session.py (Session.RemoveTable): New method to |
195 |
|
remove tables |
196 |
|
|
197 |
|
* test/test_session.py (TestSessionSimple.test_remove_table): New. |
198 |
|
Test for RemoveTable |
199 |
|
|
200 |
|
2003-05-22 Thomas Koester <[email protected]> |
201 |
|
|
202 |
|
* Thuban/Model/classgen.py: Added short module doc string and CVS id. |
203 |
|
(ClassGenerator.GenUniformDistribution): Use new Range __init__, too. |
204 |
|
|
205 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
206 |
|
|
207 |
|
Implement a way to discover dependencies between tables and |
208 |
|
shapestores. |
209 |
|
|
210 |
|
* Thuban/Model/transientdb.py (TransientTableBase.Dependencies) |
211 |
|
(TransientJoinedTable.Dependencies) |
212 |
|
(AutoTransientTable.SimpleQuery): New. Implement the dependencies |
213 |
|
interface |
214 |
|
(TransientJoinedTable.__init__): Keep tack of the original table |
215 |
|
objects in addition to the corresponding transient tables. |
216 |
|
|
217 |
|
* Thuban/Model/table.py (DBFTable.Dependencies) |
218 |
|
(MemoryTable.Dependencies): New. Implement the dependencies |
219 |
|
interface |
220 |
|
|
221 |
|
* Thuban/Model/data.py (ShapeTable): New. Helper class for |
222 |
|
ShapefileStore |
223 |
|
(ShapefileStore.__init__): Use ShapeTable instead of |
224 |
|
AutoTransientTable |
225 |
|
(ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings |
226 |
|
(ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor |
227 |
|
methods for filename and type |
228 |
|
(ShapefileStore.Dependencies): New. Implement the dependencies |
229 |
|
interface |
230 |
|
(DerivedShapeStore): New class to replace SimpleStore. The main |
231 |
|
difference to SimpleStore is that it depends not on a shapefile |
232 |
|
but another shapestore which expresses the dependencies a bit |
233 |
|
better |
234 |
|
(SimpleStore.__init__): Add deprecation warning. |
235 |
|
|
236 |
|
* test/test_dbf_table.py (TestDBFTable.test_dependencies): New. |
237 |
|
Test for the Dependencies method. |
238 |
|
|
239 |
|
* test/test_memory_table.py (TestMemoryTable.test_dependencies): |
240 |
|
New. Test for the Dependencies method. |
241 |
|
|
242 |
|
* test/test_transientdb.py |
243 |
|
(TestTransientTable.test_auto_transient_table_dependencies): New. |
244 |
|
Test for the Dependencies method. |
245 |
|
(TestTransientTable.test_transient_joined_table): Add test for the |
246 |
|
Dependencies method. |
247 |
|
|
248 |
|
* test/test_session.py (TestSessionSimple.setUp) |
249 |
|
(TestSessionSimple.tearDown): New. Implement a better way to |
250 |
|
destroy the sessions. |
251 |
|
(TestSessionSimple.test_initial_state) |
252 |
|
(TestSessionSimple.test_add_table): Bind session to self.session |
253 |
|
so that it's destroyed by tearDown |
254 |
|
(TestSessionSimple.test_open_shapefile): New. Test for |
255 |
|
OpenShapefile and the object it returns |
256 |
|
|
257 |
2003-05-22 Bernhard Herzog <[email protected]> |
2003-05-22 Bernhard Herzog <[email protected]> |
258 |
|
|
259 |
* Thuban/Model/session.py (Session.AddTable): New method to |
* Thuban/Model/session.py (Session.AddTable): New method to |