1 |
|
2003-08-22 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
Prepare the test suite for tests with required authentication |
4 |
|
|
5 |
|
* test/postgissupport.py (PostgreSQLServer.__init__): Add instance |
6 |
|
variables with two predefined users/passwords, one for the admin |
7 |
|
and one for a non-privileged user. |
8 |
|
(PostgreSQLServer.createdb): Pass the admin name to initdb and add |
9 |
|
the non-privileged user to the database and set the admin password |
10 |
|
(PostgreSQLServer.wait_for_postmaster): Use the admin user name. |
11 |
|
Better error reporting |
12 |
|
(PostgreSQLServer.connection_params) |
13 |
|
(PostgreSQLServer.connection_string): New methods to return |
14 |
|
information about how to connect to the server |
15 |
|
(PostgreSQLServer.execute_sql): New. Convenience method to execute |
16 |
|
SQL statements |
17 |
|
(PostgreSQLServer.require_authentication): Toggle whether the |
18 |
|
server requires authentication |
19 |
|
(PostgreSQLServer.create_user, PostgreSQLServer.alter_user): New. |
20 |
|
Add or alter users |
21 |
|
(PostGISDatabase.initdb): Pass the admin name one the |
22 |
|
subprocesses' command lines. Grant select rights on |
23 |
|
geometry_columns to everybody. |
24 |
|
(upload_shapefile): Use the admin name and password when |
25 |
|
connecting. Grant select rights on the new table to everybody. |
26 |
|
|
27 |
|
* test/test_viewport.py (TestViewportWithPostGIS.setUp): Use the |
28 |
|
server's new methods to get the connection parameters. |
29 |
|
|
30 |
|
* test/test_postgis_session.py (TestSessionWithPostGIS.setUp) |
31 |
|
(TestSessionWithPostGIS.test_remove_dbconn_exception): Use the |
32 |
|
server's new methods to get the connection parameters. |
33 |
|
|
34 |
|
* test/test_postgis_db.py |
35 |
|
(TestPostGISConnection.test_gis_tables_empty) |
36 |
|
(TestPostGISConnection.test_gis_tables_non_empty) |
37 |
|
(PostGISStaticTests.setUp): Use the server's new methods to get |
38 |
|
the connection parameters. |
39 |
|
|
40 |
|
2003-08-22 Bernhard Herzog <[email protected]> |
41 |
|
|
42 |
|
* Thuban/UI/about.py (About.__init__): Add the psycopg version. |
43 |
|
|
44 |
|
* Thuban/version.py: Add psycopg version |
45 |
|
|
46 |
|
* Thuban/Model/postgisdb.py (psycopg_version): New. Return the |
47 |
|
version of the psycopg module |
48 |
|
|
49 |
|
2003-08-22 Bernhard Herzog <[email protected]> |
50 |
|
|
51 |
|
* Thuban/UI/dbdialog.py (DBPwdDlg): Removed because it's not used. |
52 |
|
(DBFrame.OnEdit): Removed because it's not used and wouldn't work |
53 |
|
at the moment. The functionality should probably be implemented |
54 |
|
some time, though. |
55 |
|
(DBFrame.OnRemove): Display a message if the connection can't be |
56 |
|
removed because it's still in use. |
57 |
|
|
58 |
|
2003-08-22 Jan-Oliver Wagner <[email protected]> |
59 |
|
|
60 |
|
* Thuban/UI/about.py (About.__init__): split up the huge about |
61 |
|
text into elements/lists for easier translation. This fixes bug |
62 |
|
https://intevation.de/rt/webrt?serial_num=2058 |
63 |
|
Also, made some forgotten string available for the i18n. |
64 |
|
|
65 |
|
2003-08-21 Bernhard Herzog <[email protected]> |
66 |
|
|
67 |
|
Make postgis support really optional including insensitive menu |
68 |
|
items. |
69 |
|
|
70 |
|
* Thuban/Model/postgisdb.py (has_postgis_support): New. Return |
71 |
|
whether the postgis is supported. |
72 |
|
|
73 |
|
* Thuban/UI/dbdialog.py: Put the psycopg import into try..except |
74 |
|
to make postgis support optional |
75 |
|
|
76 |
|
* Thuban/UI/mainwindow.py (_has_postgis_support): New. Context |
77 |
|
version of Thuban.Model.postgisdb.has_postgis_support |
78 |
|
(database_management command): Make it only sensitive if postgis |
79 |
|
is supported. |
80 |
|
|
81 |
|
2003-08-21 Jan-Oliver Wagner <[email protected]> |
82 |
|
|
83 |
|
* Doc/manual/thuban-manual.xml: Added CVS revision for rev-history. |
84 |
|
(section Adding and Removing Layers): Added text and described |
85 |
|
multi-selection. |
86 |
|
(chapter Extensions): New. |
87 |
|
|
88 |
|
2003-08-21 Jan-Oliver Wagner <[email protected]> |
89 |
|
|
90 |
|
* Thuban/UI/mainwindow.py (MainWindow.AddLayer): Changed dialog |
91 |
|
settings to allow multiple files to load into the map. |
92 |
|
Also reduced selection to *.shp as a default. |
93 |
|
|
94 |
|
2003-08-20 Bernhard Herzog <[email protected]> |
95 |
|
|
96 |
|
Add dialogs and commands to open database connections and add |
97 |
|
database layers. |
98 |
|
|
99 |
|
* Thuban/UI/mainwindow.py (MainWindow.DatabaseManagement): New |
100 |
|
method to open the database connection management dialog |
101 |
|
(MainWindow.AddDBLayer): New method to add a layer from a database |
102 |
|
(_has_dbconnections): New helper function to use for sensitivity |
103 |
|
(database_management command, layer_add_db command): New commands |
104 |
|
that call the above new methods. |
105 |
|
(main_menu): Add the new commands to the menu. |
106 |
|
|
107 |
|
* Thuban/Model/postgisdb.py (PostGISConnection.__init__) |
108 |
|
(PostGISConnection.connect): Establish the actual connection in a |
109 |
|
separate method and call it in __init__. This makes it easier to |
110 |
|
override the behavior in test cases |
111 |
|
(PostGISConnection.BriefDescription): New method to return a brief |
112 |
|
description for use in dialogs. |
113 |
|
|
114 |
|
* test/test_postgis_db.py (NonConnection): DB connection that |
115 |
|
doesn't actually connect |
116 |
|
(TestBriefDescription): New class with tests for the new |
117 |
|
BriefDescription method |
118 |
|
|
119 |
|
2003-08-19 Jan-Oliver Wagner <[email protected]> |
120 |
|
|
121 |
|
Moved anything from extensions to libraries. |
122 |
|
|
123 |
|
* libraries: New. |
124 |
|
|
125 |
|
* libraries/ pyprojection, pyshapelib, shapelib, thuban: New. |
126 |
|
|
127 |
|
* libraries/pyprojection/ LICENSE, MANIFEST.in, Projection.i, |
128 |
|
Projection.py, Projection_wrap.c, setup.py, swighelp.txt: These files have |
129 |
|
been moved here from thuban/extensions/pyprojection/ |
130 |
|
See there in the Attic for the older history. |
131 |
|
|
132 |
|
* libraries/pyshapelib/ COPYING, ChangeLog, NEWS, README, dbflib.i, |
133 |
|
dbflib.py, dbflib_wrap.c, pyshapelib_api.h, pytest.py, setup.py, |
134 |
|
shapelib.i, shapelib.py, shapelib_wrap.c, shptreemodule.c: These files |
135 |
|
have been moved here from thuban/extensions/pyshapelib/ |
136 |
|
See there in the Attic for the older history. |
137 |
|
|
138 |
|
* libraries/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c: These |
139 |
|
files have been moved here from thuban/extensions/shapelib/ |
140 |
|
See there in the Attic for the older history. |
141 |
|
|
142 |
|
* libraries/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h, |
143 |
|
gdalwarp.cpp, wxproj.cpp: These files have been moved here from |
144 |
|
thuban/extensions/thuban/ |
145 |
|
See there in the Attic for the older history. |
146 |
|
|
147 |
|
* MANIFEST.in, setup.cfg, setup.py: renamed extensions to libraries. |
148 |
|
|
149 |
|
* extensions/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h, |
150 |
|
gdalwarp.cpp, wxproj.cpp: Moved to libraries/thuban. |
151 |
|
|
152 |
|
* extensions/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c: |
153 |
|
Moved to libraries/shapelib. |
154 |
|
|
155 |
|
* extensions/pyshapelib/ COPYING, NEWS, dbflib.py, pytest.py, |
156 |
|
shapelib.py, README, dbflib_wrap.c, setup.py, shapelib_wrap.c, |
157 |
|
ChangeLog, dbflib.i, pyshapelib_api.h, shapelib.i, shptreemodule.c: |
158 |
|
Moved to libraries/pyshapelib. |
159 |
|
|
160 |
|
* extensions/pyprojection/ MANIFEST.in, Projection.py, setup.py, |
161 |
|
LICENSE, Projection.i, Projection_wrap.c, swighelp.txt: |
162 |
|
Moved to libraries/pyprojection. |
163 |
|
|
164 |
|
* extensions/ pyprojection, pyshapelib, shapelib, thuban: Removed. |
165 |
|
|
166 |
|
* extensions: Removed. |
167 |
|
|
168 |
|
2003-08-19 Bernhard Herzog <[email protected]> |
169 |
|
|
170 |
|
* test/test_viewport.py (ViewPortTest): We don't use the |
171 |
|
facilities of FileTestMixin so don't derive from it. |
172 |
|
(TestViewportWithPostGIS): New class with tests for using a |
173 |
|
viewport on a map with postgis layers. |
174 |
|
|
175 |
|
2003-08-19 Bernhard Herzog <[email protected]> |
176 |
|
|
177 |
|
Add the db connection management to the session. |
178 |
|
|
179 |
|
* Thuban/Model/session.py (Session.__init__): New instance |
180 |
|
variable db_connections |
181 |
|
(Session.AddDBConnection, Session.DBConnections) |
182 |
|
(Session.HasDBConnections, Session.CanRemoveDBConnection) |
183 |
|
(Session.RemoveDBConnection): New methods to manage and query the |
184 |
|
db connections managed by the session |
185 |
|
(Session.OpenDBShapeStore): New method to open a shapestore from a |
186 |
|
db connection |
187 |
|
|
188 |
|
* Thuban/Model/messages.py (DBCONN_REMOVED, DBCONN_ADDED): New |
189 |
|
messages for the db connection handling in the session |
190 |
|
|
191 |
|
* test/test_postgis_session.py: New. test cases for the session's |
192 |
|
db connection handling with postgis connections |
193 |
|
|
194 |
|
2003-08-19 Bernhard Herzog <[email protected]> |
195 |
|
|
196 |
|
Add very basic postgis database support and the corresponding test |
197 |
|
cases. The test cases require a PostgreSQL + postgis installation |
198 |
|
but no existing database. The database will be created |
199 |
|
automatically by the test cases |
200 |
|
|
201 |
|
* test/README: Add note about skipped tests and the requirements |
202 |
|
of the postgis tests. |
203 |
|
|
204 |
|
* Thuban/Model/postgisdb.py: New. Basic postgis database support. |
205 |
|
|
206 |
|
* test/test_postgis_db.py: New. Test cases for the postgis |
207 |
|
support. |
208 |
|
|
209 |
|
* Thuban/Model/wellknowntext.py: New. Parser for well-known-text |
210 |
|
format |
211 |
|
|
212 |
|
* test/test_wellknowntext.py: New. Test cases for the |
213 |
|
wellknowntext parser |
214 |
|
|
215 |
|
* test/postgissupport.py: New. Support module for tests involving |
216 |
|
a postgis database. |
217 |
|
|
218 |
|
* test/support.py (execute_as_testsuite): Shut down the postmaster |
219 |
|
if it's still running after the tests |
220 |
|
|
221 |
|
* Thuban/Model/data.py (RAW_WKT): New constant for raw data in |
222 |
|
well known text format |
223 |
|
|
224 |
|
2003-08-19 Jan-Oliver Wagner <[email protected]> |
225 |
|
|
226 |
|
* Examples/simple_extensions/hello_world.py: New. Raises a Hello World |
227 |
|
message dialog. |
228 |
|
|
229 |
|
2003-08-18 Bernhard Herzog <[email protected]> |
230 |
|
|
231 |
|
* test/support.py (ThubanTestResult.printErrors): Indent the |
232 |
|
reason for the skips in the output to make it a bit more readable. |
233 |
|
(execute_as_testsuite): New helper function to run a test suite |
234 |
|
and print some more information. |
235 |
|
(run_tests): Use execute_as_testsuite to run the tests |
236 |
|
|
237 |
|
* test/runtests.py (main): Use execute_as_testsuite to run the |
238 |
|
tests |
239 |
|
|
240 |
|
2003-08-18 Bernhard Herzog <[email protected]> |
241 |
|
|
242 |
|
Fix some bugs in Thuban and the test suite that were uncovered by |
243 |
|
changes introduced in Python 2.3: |
244 |
|
|
245 |
|
* Thuban/Model/table.py (DBFTable.__init__): Make sure the |
246 |
|
filename is an absolute name |
247 |
|
|
248 |
|
* Thuban/Model/layer.py (RasterLayer.__init__): Make sure the |
249 |
|
filename is an absolute name |
250 |
|
|
251 |
|
* test/test_save.py (SaveSessionTest.testRasterLayer): Use a |
252 |
|
unique filename to save to and use the correct relative filename |
253 |
|
in the expected output. |
254 |
|
(SaveSessionTest.test_dbf_table): Use the correct relative |
255 |
|
filename in the expected output. |
256 |
|
|
257 |
|
* test/test_layer.py (TestLayer.test_raster_layer): Update the |
258 |
|
test to check whether the filename is absolute. |
259 |
|
|
260 |
|
2003-08-18 Jan-Oliver Wagner <[email protected]> |
261 |
|
|
262 |
|
* Thuban/UI/about.py (About.__init__): Added Silke Reimer. |
263 |
|
|
264 |
|
2003-08-15 Bernhard Herzog <[email protected]> |
265 |
|
|
266 |
|
Change the way shapes are returned by a shape store. The |
267 |
|
ShapesInRegion method returns an iterator over actual shape |
268 |
|
objects instead of a list of shape ids. |
269 |
|
|
270 |
|
* Thuban/Model/data.py (ShapefileShape.ShapeID): New. Return shape |
271 |
|
id. |
272 |
|
(ShapefileStore.ShapesInRegion): Return an iterator over the |
273 |
|
shapes which yields shape objects instead of returning a list of |
274 |
|
shape ids |
275 |
|
(ShapefileStore.AllShapes): New. Return an iterator over all |
276 |
|
shapes in the shape store |
277 |
|
(DerivedShapeStore.AllShapes): New. Like in ShapefileStore |
278 |
|
|
279 |
|
* Thuban/Model/layer.py (Layer.ShapesInRegion): Update |
280 |
|
doc-string. |
281 |
|
|
282 |
|
* Thuban/UI/baserenderer.py |
283 |
|
(BaseRenderer.layer_ids, BaseRenderer.layer_shapes): Rename to |
284 |
|
layer_shapes and make it return an iterator containg shapes |
285 |
|
instead of a list of ids. |
286 |
|
(BaseRenderer.draw_shape_layer): Update doc-string; Adapt to |
287 |
|
layer_shapes() change |
288 |
|
|
289 |
|
* Thuban/UI/renderer.py (ScreenRenderer.layer_ids) |
290 |
|
(ScreenRenderer.layer_shapes): Rename as in BaseRenderer |
291 |
|
|
292 |
|
* Thuban/UI/viewport.py (ViewPort._find_shape_in_layer): Adapt to |
293 |
|
changes in the ShapesInRegion return value. |
294 |
|
(ViewPort._get_hit_tester): Remove commented out code |
295 |
|
|
296 |
|
* test/mockgeo.py (SimpleShapeStore.ShapesInRegion): Adapt to the |
297 |
|
new return value. |
298 |
|
(SimpleShapeStore.AllShapes): New. Implement this method too. |
299 |
|
|
300 |
|
* test/test_layer.py (TestLayer.test_arc_layer) |
301 |
|
(TestLayer.test_polygon_layer, TestLayer.test_point_layer) |
302 |
|
(TestLayer.test_point_layer_with_projection) |
303 |
|
(TestLayer.test_derived_store): Adapt to changes in the |
304 |
|
ShapesInRegion return value. |
305 |
|
|
306 |
|
* test/test_shapefilestore.py |
307 |
|
(TestShapefileStoreArc.test_shapes_in_region) |
308 |
|
(TestShapefileStorePolygon.test_shapes_in_region) |
309 |
|
(TestShapefileStorePoint.test_shapes_in_region): Adapt to changes |
310 |
|
in the ShapesInRegion return value. |
311 |
|
(TestShapefileStorePoint.test_all_shapes) |
312 |
|
(TestShapefileStoreArc.test_shape_shapeid): New tests for the new |
313 |
|
methods |
314 |
|
|
315 |
|
* test/test_derivedshapestore.py |
316 |
|
(TestDerivedShapeStore.test_shapes_in_region): Adapt to changes in |
317 |
|
the ShapesInRegion return value. |
318 |
|
(TestDerivedShapeStore.test_all_shapes) |
319 |
|
(TestDerivedShapeStore.test_shape_shapeid): New tests for the new |
320 |
|
methods |
321 |
|
|
322 |
|
2003-08-15 Bernhard Herzog <[email protected]> |
323 |
|
|
324 |
|
Make the renderers deal correctly with raw vs. python level |
325 |
|
representation of shape geometries |
326 |
|
|
327 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.low_level_renderer): |
328 |
|
Return a flag useraw in addition to the callable and the parameter |
329 |
|
to indicate whether the callable can deal with the raw shape data |
330 |
|
or uses the higher level python lists of coordinates. The callable |
331 |
|
now should accept either the raw data or the return value of the |
332 |
|
shape's Points() method. |
333 |
|
(BaseRenderer.draw_shape_layer): Adapt to the low_level_renderer |
334 |
|
change |
335 |
|
(BaseRenderer.projected_points): Instead of the shape id use the |
336 |
|
points list as parameter. |
337 |
|
(BaseRenderer.draw_polygon_shape, BaseRenderer.draw_arc_shape) |
338 |
|
(BaseRenderer.draw_point_shape): Adapt to projected_points() |
339 |
|
change and accept the points list as parameter instead of the |
340 |
|
shape id. |
341 |
|
|
342 |
|
* Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Return |
343 |
|
the useraw flag as required by the BaseRenderer |
344 |
|
(ScreenRenderer.draw_shape_layer): Adapt to low-level renderer |
345 |
|
changes. |
346 |
|
|
347 |
|
* test/test_baserenderer.py |
348 |
|
(TestBaseRenderer.test_point_with_classification): New test for |
349 |
|
rendering a map with classifications. |
350 |
|
|
351 |
|
2003-08-15 Bernhard Herzog <[email protected]> |
352 |
|
|
353 |
|
* Thuban/UI/viewport.py (ViewPort.find_shape_at) |
354 |
|
(ViewPort._find_shape_in_layer, ViewPort._find_shape_in_layer) |
355 |
|
(ViewPort._get_hit_tester, ViewPort.projected_points) |
356 |
|
(ViewPort._hit_point, ViewPort._hit_arc, ViewPort._hit_polygon) |
357 |
|
(ViewPort._find_label_at): Split the find_shape_at method into |
358 |
|
several new methods and use the functions in the hit-test module. |
359 |
|
|
360 |
|
* Thuban/UI/hittest.py: New module with Python-level hit-testing |
361 |
|
functions |
362 |
|
|
363 |
|
* test/test_hittest.py: New. Test for the new hittest module |
364 |
|
|
365 |
|
2003-08-15 Bernhard Herzog <[email protected]> |
366 |
|
|
367 |
|
* Thuban/Model/layer.py (Layer.ShapesInRegion): Apply the layer |
368 |
|
projection to all corners of the bounding box to get a better |
369 |
|
approximation of the projected bounding box |
370 |
|
|
371 |
|
* test/test_layer.py (TestLayer.test_point_layer_with_projection): |
372 |
|
New. Test coordinate handling of a layer with a projection. |
373 |
|
Catches the bug fixed in Layer.ShapesInRegion |
374 |
|
|
375 |
|
2003-08-15 Bernhard Herzog <[email protected]> |
376 |
|
|
377 |
|
Move some of the mock objects in test_baserenderer into their own |
378 |
|
module so they can easily be used from other tests |
379 |
|
|
380 |
|
* test/mockgeo.py: New test helper module with some mock objects |
381 |
|
for geometry related things like shapes, shapestores and |
382 |
|
projections. |
383 |
|
|
384 |
|
* test/test_mockgeo.py: New. Tests for the new helper module |
385 |
|
|
386 |
|
* test/test_baserenderer.py: Some of the mock-objects are in |
387 |
|
mockgeo now. |
388 |
|
|
389 |
|
2003-08-12 Jan-Oliver Wagner <[email protected]> |
390 |
|
|
391 |
|
* Thuban/UI/about.py (About.__init__): Added Bj�rn Broscheit. |
392 |
|
|
393 |
2003-08-12 Bernhard Herzog <[email protected]> |
2003-08-12 Bernhard Herzog <[email protected]> |
394 |
|
|
395 |
* po/de.po: New. German translations by Bjoern Broscheit |
* po/de.po: New. German translations by Bjoern Broscheit |