/[thuban]/branches/WIP-pyshapelib-bramz/ChangeLog
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/ChangeLog

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

revision 1775 by bh, Mon Oct 6 13:09:24 2003 UTC revision 2022 by frank, Fri Dec 5 13:36:10 2003 UTC
# Line 1  Line 1 
1    2003-12-05  Frank Koormann   <[email protected]>
2    
3            * Thuban/UI/projdialog.py (load_user_proj): If user.proj is missing
4            write warning to stderr instead of rising a warning dialog
5    
6    2003-12-03  Bernhard Herzog  <[email protected]>
7    
8            Fix for RT #2243
9    
10            * Thuban/UI/mainwindow.py (MainWindow.has_selected_shape_layer):
11            New. Like has_selected_layer but for shape layers only
12            (_has_selected_shape_layer): New. Like _has_selected_layer but for
13            shape layers only
14            (layer_show_table command, layer_jointable command): Use these
15            commands should only be available for shape layers
16    
17    2003-12-03  Bernhard Herzog  <[email protected]>
18    
19            * Thuban/UI/mainwindow.py (MainWindow.Unsubscribe): Deal with
20            publishers that are wx objects and may have been destroyed by wx
21            already. Fixes RT #2242.
22    
23    2003-12-03  Bernhard Herzog  <[email protected]>
24    
25            * po/ru.po: Updates from Alex Shevlakov
26    
27    2003-12-03  Silke Reimer <silkeintevation.de>
28    
29            * debian/control, debian/changelog: Added gdal-support to
30                    debian package, updated to new thuban version
31    
32    
33    2003-12-03  Bernhard Herzog  <[email protected]>
34    
35            * Thuban/Lib/version.py: New. Module for version number
36            manipulations. The version of make_tuple here also deals better
37            with more unusual version number strings, such as e.g.
38            "1.2+cvs20031111"
39    
40            * Thuban/version.py (make_tuple): Removed. It's now in
41            Thuban.Lib.version. Use that implementation instead.
42    
43            * test/test_lib_version.py: New. Tests for Thuban/Lib/version.py
44    
45    2003-12-02  Bernhard Herzog  <[email protected]>
46    
47            * MANIFEST.in: Add debian files
48    
49            * setup.py (setup call): Add packages for the Extensions so that
50            they're installed too
51            (data_files): Add READMEs and sample data from some Extensions
52    
53            * NEWS: Add note about the extensions in binary packages
54    
55    2003-12-02  Bernhard Herzog  <[email protected]>
56    
57            * Thuban/Model/save.py (SessionSaver.write_session): Save files
58            with the thuban-1.0rc1
59    
60            * Thuban/Model/load.py (SessionLoader.__init__): Recognize the
61            thuban-1.0rc1 namespace too
62    
63            * test/test_save.py (SaveSessionTest.dtd)
64            (SaveSessionTest.testEmptySession)
65            (SaveSessionTest.testSingleLayer)
66            (SaveSessionTest.testLayerProjection)
67            (SaveSessionTest.testRasterLayer)
68            (SaveSessionTest.testClassifiedLayer)
69            (SaveSessionTest.test_dbf_table)
70            (SaveSessionTest.test_joined_table)
71            (SaveSessionTest.test_save_postgis): Update to thuban-1.0rc1
72            namespace
73    
74            * test/test_load.py (LoadSessionTest.dtd): Update to thuban-1.0rc1
75            namespace
76            (TestSingleLayer.file_contents)
77            (TestNonAsciiColumnName.file_contents)
78            (TestLayerVisibility.file_contents)
79            (TestClassification.file_contents, TestLabels.file_contents)
80            (TestLayerProjection.file_contents)
81            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
82            (TestPostGISLayer.file_contents)
83            (TestPostGISLayerPassword.file_contents)
84            (TestLoadError.file_contents, TestLoadError.test): Update to
85            thuban-1.0rc1 namespace
86    
87    2003-12-01  Bernhard Herzog  <[email protected]>
88    
89            * setup.py (proj4_prefix, wx_prefix, gdal_prefix): Fix these for
90            nt to better match Intevation's current w32 setup
91    
92            * HOWTO-Release: Add note about updating MANIFEST.in
93    
94            * MANIFEST.in: Add the Extensions
95    
96            * NEWS: Update for 1.0rc1
97    
98    2003-12-01  Bernhard Herzog  <[email protected]>
99    
100            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Change the wild
101            cards for the dialog so that shapefiles ending in all uppercase
102            SHP are listed too
103    
104    2003-11-28  Bernhard Herzog  <[email protected]>
105    
106            * Thuban/version.py (longversion): Update to 1.0rc1
107    
108            * setup.py (setup call): Update version to 1.0rc1. Use the
109            [email protected] email address as author email instead of my
110            personal one.
111    
112    2003-11-28  Bernhard Herzog  <[email protected]>
113    
114            * po/de.po: Update german translation.
115    
116    2003-11-28  Bernhard Herzog  <[email protected]>
117    
118            Unify the filenames stored in .thuban files so that the .thuban
119            files are more platform independend
120    
121            * Thuban/Model/save.py (unify_filename): New. Unify filenames so
122            that they can be used on both windows and unix
123            (SessionSaver.prepare_filename): New. Handle all filename
124            transformations for filenames stored in the thuban file
125            (SessionSaver.write_data_containers, SessionSaver.write_layer):
126            Use prepare_filename
127    
128            * test/test_save.py (SaveSessionTest.testSingleLayer)
129            (SaveSessionTest.testLayerProjection)
130            (SaveSessionTest.testRasterLayer)
131            (SaveSessionTest.testClassifiedLayer)
132            (SaveSessionTest.test_dbf_table)
133            (SaveSessionTest.test_joined_table): Filenames are always stored
134            with slashes on all currently supported platforms so adapt all
135            tests to this
136    
137            * test/test_load.py (LoadSessionTest.filenames): With the new
138            filename scheme the filenames in the tests should be
139            understandable on all currently supported platforms so we turn
140            this into an empty list because we don't have to normalize them
141            anymore
142    
143    2003-11-28  Bernhard Herzog  <[email protected]>
144    
145            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
146            Add the ellipsoid to the projection since some Proj versions
147            complain if it's missing.
148    
149    2003-11-27  Bernhard Herzog  <[email protected]>
150    
151            Corect some bounding box projection problems
152    
153            * Thuban/Model/proj.py (Projection.InverseBBox): New. Inverse
154            version of ForwardBBox
155            (Projection._transform_bbox): New. common implementation of
156            ForwardBBox and InverseBBox
157            (Projection.ForwardBBox): Use _transform_bbox.
158    
159            * test/test_proj.py (TestProjection.test): Add test for
160            InverseBBox
161    
162            * Thuban/Model/layer.py (Layer.LatLongBoundingBox)
163            (Layer.ShapesBoundingBox, RasterLayer.LatLongBoundingBox): Use the
164            new InverseBBox method to determine the unprojected bounding box
165            (Layer.ShapesInRegion): Use the ForwardBBox method to project the
166            bbox.
167    
168            * test/test_layer.py (TestLayer.test_point_layer_with_projection):
169            Removed.
170            (TestLayer.test_arc_layer_with_projection): New. This test is
171            better able to test whether bounding boxes are projected correctly
172            than test_point_layer_with_projection
173    
174            * Thuban/UI/viewport.py (ViewPort.map_projection_changed): Use
175            InverseBBox to unproject bboxes
176    
177    2003-11-25  Bernhard Herzog  <[email protected]>
178    
179            * Thuban/UI/about.py (About.__init__): Make sure we have ASCII
180            source code.
181    
182    2003-11-25  Bernhard Herzog  <[email protected]>
183    
184            * Thuban/Model/layer.py (Layer.__getattr__): Removed. It was only
185            there for backwards compatibility and all code relying on that
186            should have been updated by now.
187    
188    2003-11-25  Bernhard Herzog  <[email protected]>
189    
190            * test/test_load.py (TestClassification.test): Add the missing
191            round trip test.
192            (TestClassification.file_contents): Update to the newest file
193            format
194    
195    2003-11-25  Bernhard Herzog  <[email protected]>
196    
197            Add very experimental (and possibly dangerous) extension to draw
198            polygons:
199    
200            * Extensions/drawshape/README: New. Brief installation
201            instructions
202    
203            * Extensions/drawshape/drawshape.py: New. Implementation of the
204            drawshape extensions
205    
206            * Extensions/drawshape/patch.diff: Patch to apply before the
207            extension can be used.
208    
209    2003-11-24  Bernhard Herzog  <[email protected]>
210    
211            * Thuban/Model/data.py (ShapefileStore._open_shapefile)
212            (ShapefileStore.__init__): Factor opening the shapefile into a
213            separate method (the new _open_shapefile). This makes the code a
214            bit more readable but the real reason is that it makes some evil
215            hacks easier. :-)
216    
217    2003-11-24  Bernhard Herzog  <[email protected]>
218    
219            * Thuban/Model/load.py (SessionLoader.check_attrs): If no
220            converter is specified for an attribute assume it's a string
221            containing only Latin1 characters. Update doc-string accordingly.
222            This change should fix many places where unicode objects might
223            accidentally enter Thuban.
224    
225            * test/test_load.py (TestNonAsciiColumnName): New test to check
226            what happens with column names in DBF files that contain non-ascii
227            characters
228    
229    2003-11-21  Bernhard Herzog  <[email protected]>
230    
231            Enable the experimental attribute editing again and introduce a
232            command line switch to actually activate it
233    
234            * Thuban/UI/main.py (options): New. Container for options set on
235            the commmand line
236            (main): Add the --enable-attribute-editing flag.
237    
238            * Thuban/UI/identifyview.py (IdentifyView.__init__): If attribute
239            editing is enabled use the grid ctrl which allows editing of the
240            values
241    
242            * Thuban/Model/transientdb.py (AutoTransientTable.write_record):
243            New. Just delegate this to the underlying table.
244    
245    2003-11-20  Bernhard Herzog  <[email protected]>
246    
247            * test/test_proj.py (ProjFileReadTests.test_read_unreadable_file):
248            Skip this test if run under non-posix systems since it only works
249            there
250    
251    2003-11-19  Bernhard Herzog  <[email protected]>
252    
253            * Thuban/Model/resource.py: Rework the way gdal support is
254            determined so that we can give a reason in the about why gdal is
255            not supported.
256            (gdal_support_status): New. Variable holding a string with the
257            reason for no gdal support
258    
259            * Thuban/UI/about.py (About.__init__): Add the reason why gdal is
260            not supported to the message
261    
262    2003-11-19  Bernhard Herzog  <[email protected]>
263    
264            Remove the old table interface and its test cases
265    
266            * Thuban/Model/table.py (OldTableInterfaceMixin): Removed.
267            (DBFTable, MemoryTable): Do not derive from OldTableInterfaceMixin
268            anymore
269    
270            * Thuban/Model/transientdb.py (TransientTableBase)
271            (AutoTransientTable): Do not derive from OldTableInterfaceMixin
272            anymore
273    
274            * test/test_table.py: Removed since the old interface it tests is
275            gone.
276    
277            * test/runtests.py (main): The old table interface is gone and
278            with it the deprecation warnings so remove the code that turns
279            these warnings into errors
280    
281    2003-11-19  Bernhard Herzog  <[email protected]>
282    
283            * test/test_table.py: Revert to revision 1.5 again. Changing the
284            tests to use the new table interface is completely wrong since the
285            whole purpose of the tests in this module is to test the old
286            interface.
287    
288    2003-11-18  Bernhard Herzog  <[email protected]>
289    
290            * Thuban/Model/postgisdb.py (PostGISConnection.MatchesParameters):
291            New. Test whether the connection matches a set of connection
292            parameters
293    
294            * Thuban/UI/dbdialog.py (DBFrame.conns_changed): Fix doc-string
295            (DBFrame.OnAdd): Use the new MatchesParameters method when looking
296            for existing connections with the same parameters and break out of
297            the loop correctly.
298    
299            * test/test_postgis_db.py (TestBriefDescription)
300            (TestPostGISSimple.test_brief_description): Rename
301            TestBriefDescription to TestPostGISSimple and the test method to
302            test_brief_description so that we can add more test methods.
303            (TestPostGISSimple.test_matches_parameters): New. Test the new
304            MatchesParameters method
305    
306    2003-11-18  Bernhard Herzog  <[email protected]>
307    
308            * Thuban/Lib/connector.py (Publisher): Introduce a new flag,
309            _was_destroyed, to indicate whether an publisher instance has
310            already been destroyed.
311            (Publisher.Unsubscribe): Only disconnect if the publisher has not
312            been destroyed yet.
313            (Publisher.Destroy): Set the _was_destroyed flag to true.
314    
315            * test/test_connector.py
316            (TestPublisher.test_unsubscribe_after_destroy): New. Test that
317            calling Unsubscribe after Destroy doesn't raise an exception
318    
319    2003-11-14  Bernhard Herzog  <[email protected]>
320    
321            * Thuban/UI/identifyview.py (IdentifyView.selected_shape): Fix
322            typo in doc-string
323    
324    2003-11-13  Bernhard Herzog  <[email protected]>
325    
326            Quote table and column names properly for postgis.
327    
328            * Thuban/Model/postgisdb.py (quote_identifier): New. Function to
329            quote an identifier for use in an sql statement
330            (PostGISColumn.__init__): Add the quoted_name attribute
331            (PostGISTable.__init__): New instance variable quoted_tablename
332            (PostGISTable._fetch_table_information): Use the quoted table
333            name. New isntance variable quoted_geo_col with a quoted version
334            of geometry_column
335            (PostGISTable.NumRows, PostGISTable.RowIdToOrdinal)
336            (PostGISTable.RowOrdinalToId): Use the quoted table name
337            (PostGISTable.ReadValue, PostGISTable.ValueRange)
338            (PostGISTable.UniqueValues, PostGISTable.SimpleQuery)
339            (PostGISShapeStore.BoundingBox, PostGISShapeStore.Shape)
340            (PostGISShapeStore.AllShapes, PostGISShapeStore.ShapesInRegion):
341            Use quoted table and column names
342    
343            * test/test_postgis_db.py (TestPostGISSpecialCases)
344            (TestPostGISIgnoredColumns): Rename the class to
345            TestPostGISSpecialCases because that better describes the new
346            cases
347            (TestPostGISSpecialCases.test_unsupported_types)
348            (TestPostGISSpecialCases.test): Rename the method to
349            test_unsupported_types because we need a more descriptive name now
350            that there are more methods
351            (TestPostGISSpecialCases.test_table_name_quoting)
352            (TestPostGISSpecialCases.test_column_name_quoting)
353            (TestPostGISSpecialCases.test_shapestore_name_quoting): New test
354            cases to test quoting of table and column names in PostGISTable
355            and PostGISShapeStore
356    
357            * test/postgissupport.py
358            (skip_if_addgeometrycolumn_does_not_use_quote_ident): New. Skip if
359            AddGeometryColumn desn't support table or column names with sapces
360            or double quotes
361    
362    2003-11-12  Jan-Oliver Wagner <[email protected]>
363    
364            * Extensions/wms/__init__.py: New: Init to make this
365            directory a package.
366    
367            * Extensions/wms/wms.py: New: Provide layers via OGC WMS.
368    
369    2003-11-11  Bernhard Herzog  <[email protected]>
370    
371            * Thuban/Model/resource.py (EPSG_DEPRECATED_PROJ_FILE): New.
372            Constant for the file woth deprecated epsg projections
373            (get_system_proj_file): Update doc-string
374    
375            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Add a space
376            above the EPS widgets, introduce a check box for the deprecated
377            eps projections and a label for the epsg widgets
378            (ProjFrame._OnShowEPSG): Handle the deprecated EPSG projections
379            too
380    
381    2003-11-11  Bernhard Herzog  <[email protected]>
382    
383            Avoid warnings when run under Python 2.3
384    
385            * Thuban/UI/baserenderer.py (BaseRenderer.draw_point_shape)
386            (BaseRenderer.draw_label_layer): Coordinates must be ints.
387    
388            * Thuban/UI/renderer.py (MapRenderer.make_point): Turn this into a
389            real method so that we can convert to int.
390            (MapRenderer.label_font): The font size mist be an int.
391    
392            * Thuban/UI/common.py (Color2wxColour): The color values must be
393            ints. Also, remove the unnecessary asserts.
394    
395            * test/test_load_0_8.py (TestUnicodeStrings.file_contents)
396            (TestUnicodeStrings.test): Python source code should not contain
397            non-ascii characters unless an encoding is specified in the file.
398            Therefore use \x escapes in the string literals for non-ascii
399            characters.
400    
401    2003-11-11  Bernhard Herzog  <[email protected]>
402    
403            * Thuban/Model/resource.py (get_system_proj_file): Add a filename
404            parameter so that this function can be used for all proj files in
405            Resource/Projections
406            (DEFAULT_PROJ_FILE, EPSG_PROJ_FILE): New. Predefined filenames for
407            get_system_proj_file
408    
409            * Thuban/UI/projdialog.py (ProjFrame.__init__): Instead of one
410            ProjFile self.__sysProjFile use a dictionary of system ProjFile
411            objects self._sys_proj_files
412            (ProjFrame.build_dialog): Adapt to the new changes in the
413            ProjectionList constructor. Add a check button to toggle whether
414            EPSG projections are shown
415            (ProjFrame._OnShowEPSG): New. Handler for the epsg check button
416            events.
417            (ProjFrame.load_user_proj, ProjFrame.load_system_proj): Only show
418            the busy cursor if the files have not yet been loaded by the
419            dialog.
420            (ProjFrame.load_system_proj): Add a parameter for the name of the
421            proj file. Maintain the dictionary of system projections
422            self._sys_proj_files
423    
424            * Thuban/UI/projlist.py (ProjectionList): Merge the system_projs,
425            user_projs parameters into one parameter proj_files which is a
426            list of proj files.
427            (ProjectionList._subscribe_proj_files)
428            (ProjectionList._unsubscribe_proj_files): New. Move
429            subscription/unsubscription of projfile messages to separate
430            methods
431            (ProjectionList.Destroy): The unsubscribe is now done in
432            _unsubscribe_proj_files
433            (ProjectionList.update_projections): We now have a list of proj
434            file objects
435            (ProjectionList.SetProjFiles): New method to set a new list of
436            proj file objects
437    
438            * test/test_proj.py (ProjFileReadTests.test_get_system_proj_file):
439            Specify explicitly which system proj file to load.
440    
441    2003-11-11  Bernhard Herzog  <[email protected]>
442    
443            * Thuban/Model/load.py (SessionLoader.Destroy): New. Clear all
444            instance variables to cut cyclic references. The GC would have
445            collected the loader eventually but it can happen that it doesn't
446            run at all until thuban is closed (2.3 but not 2.2 tries a bit
447            harder and forces a collection when the interpreter terminates)
448            (load_session): Call the handler's Destroy method to make sure
449            that it gets garbage collected early. Otherwise it will be
450            collected very late if at all and it holds some references to e.g.
451            shapestores and the session which can lead to leaks (of e.g. the
452            temporary files)
453    
454            * test/test_load.py (TestSingleLayer.test_leak): New. test for the
455            resource leak in load_session
456    
457    2003-11-10  Bernhard Herzog  <[email protected]>
458    
459            * Thuban/UI/baserenderer.py: Add a way to specify how layers in
460            extensions are to be rendered.
461            (_renderer_extensions): New. List with renderer for layers in
462            extensions
463            (add_renderer_extension): New. Add a renderer extension
464            (init_renderer_extensions): New. Init the renderer extensions
465            (BaseRenderer.render_map_incrementally): Search
466            _renderer_extensions for how to draw unknown layer types
467            (BaseRenderer.draw_raster_data): Add format parameter so that
468            formats other than BMP can be drawn
469            (BaseRenderer.draw_raster_layer): Pass an explicit format to
470            draw_raster_data
471    
472            * Thuban/UI/renderer.py (raster_format_map): New. Mapping form the
473            strings of the format parameter of draw_raster_data method to wx
474            constants
475            (MapRenderer.draw_raster_data): Add the format parameter and use
476            raster_format_map to map it to the right wxwindows constant for
477            wxImageFromStream
478    
479            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Add
480            the format parameter and record it
481            (TestBaseRenderer.test_raster_no_projection): check the format
482            paramter of the draw_raster_data method
483            (TestBaseRenderer.test_renderer_extension): New. Test the renderer
484            extension facility
485    
486    2003-11-07  Bernhard Herzog  <[email protected]>
487    
488            Tweak the usage of the sqlite database to make common use cases
489            more responsive. In most cases copying the data to the sqlite
490            database takes so long that using sqlite doesn't have enough
491            advantages.
492    
493            * Thuban/Model/transientdb.py (TransientTableBase.ValueRange): Add
494            comments about performance and query the min and max in separate
495            statements because only that way will indexes be used.
496            (TransientTableBase.UniqueValues): Add some comments about
497            performance.
498            (AutoTransientTable.ValueRange, AutoTransientTable.UniqueValues):
499            Do not copy the data to the transient DB but use the transient
500            copy if it exists. See the new comments for the performance trade
501            offs
502    
503            * test/test_transientdb.py
504            (TestTransientTable.test_auto_transient_table): Make sure that the
505            data is copied to the transient database at some point.
506    
507    2003-11-03  Bernhard Herzog  <[email protected]>
508    
509            * Thuban/Model/data.py (ShapefileStore.ShapesInRegion): Bind some
510            globals to locals so that it's a bit faster
511    
512    2003-11-03  Bernhard Herzog  <[email protected]>
513    
514            * Thuban/UI/baserenderer.py
515            (BaseRenderer.draw_shape_layer_incrementally): Use the ReadValue
516            method. ReadValue is faster than ReadRowAsDict since it only reads
517            one cell especially now that the dbf file objects actually
518            implement it.
519    
520            * Thuban/Model/table.py (DBFTable.ReadValue): Use the new
521            read_attribute method of the dbf objects
522    
523    2003-11-03  Bernhard Herzog  <[email protected]>
524    
525            * Extensions/profiling/profiling.py (popup_dialog_box): New config
526            variable to indicate whether the result should be shown in a
527            dialog box
528            (profile_screen_renderer, time_screen_renderer): Only show a
529            dialog box if popup_dialog_box is true.
530            (profile_screen_renderer): Flush stdout after the printing the
531            first part of the "profiling..." message
532    
533            * Thuban/UI/baserenderer.py
534            (BaseRenderer.draw_shape_layer_incrementally): Cache the pens and
535            brushes for the groups so that they're not created over and over
536            again
537    
538            * Thuban/Model/classification.py (Classification.__getattr__)
539            (Classification._compile_classification)
540            (Classification._clear_compiled_classification): New. Methods to
541            manage a 'compiled' representation of the classification groups
542            which is created on demand
543            (Classification.InsertGroup, Classification.RemoveGroup)
544            (Classification.ReplaceGroup): reset the compiled representation
545            (Classification.FindGroup): Use the compiled representation to
546            find the matching group
547            (ClassGroupRange.GetRangeTuple): New. Return the range as a tuple
548    
549    2003-10-31  Bernhard Herzog  <[email protected]>
550    
551            * Thuban/Model/classification.py (Classification.SetDefaultGroup):
552            Send a CLASS_CHANGED message
553            (Classification.RemoveGroup): Send a CLASS_CHANGED message and do
554            not return the removed group since it wasn't used.
555    
556            * test/test_classification.py
557            (TestClassification.test_set_default_group): New. Test the
558            SetDefaultGroup method
559            (TestClassification.test_insert_group): New. Test the InsertGroup
560            method
561            (TestClassification.test_remove_group): New. Test the RemoveGroup
562            method
563            (TestClassification.test_replace_group): New. Test the
564            ReplaceGroup method
565    
566    2003-10-31  Bernhard Herzog  <[email protected]>
567    
568            * test/test_classification.py (TestClassification.setUp):
569            Subscribe to the CLASS_CHANGED messages
570            (TestClassification.tearDown): New. Destroy the classification
571            properly
572            (TestClassification.test_defaults): Add tests for the default line
573            width and whether no messages were sent yet
574            (TestClassification.test_set_default_properties): Add tests for
575            messages and setting the default line width
576            (TestClassification.test_add_singleton)
577            (TestClassification.test_add_range)
578            (TestClassification.test_multiple_groups): Add tests for messages
579    
580    2003-10-31  Bernhard Herzog  <[email protected]>
581    
582            Some more refactoring in preparation for new tests:
583    
584            * test/test_classification.py (TestClassification.setUp): New.
585            Instantiate the classification here. Update the test methods
586            accordingly.
587            (TestClassification.test_multiple_groups): Make sure that the two
588            singletons matching 1 are considered different.
589    
590    2003-10-31  Bernhard Herzog  <[email protected]>
591    
592            * test/test_classification.py (red, green, blue): New. These
593            constants were used in several cases. Update the relevant methods.
594            (TestClassification.test_defaults)
595            (TestClassification.test_set_default_properties)
596            (TestClassification.test_add_singleton)
597            (TestClassification.test_add_range)
598            (TestClassification.test_multiple_groups)
599            (TestClassification.test_deepcopy): New. These were formerly all
600            part of the single method test.
601            (TestClassification.test_deepcopy): Removed.
602            (TestClassIterator): Removed. The test case is now a method of
603            TestClassification since it tests part of the public interface of
604            Classification
605            (TestClassification.test_iterator): New. Used to be
606            TestClassIterator effectively
607    
608    2003-10-31  Jan-Oliver Wagner <[email protected]>
609    
610            GUIfied the functions of the profiling extension.
611    
612            * /Extensions/profiling/__init__.py: New: Init to make this
613            directory a package.
614    
615            * Extensions/profiling/profiling.py: Moved menu entries to
616            the Extensions menu. Applied _() for strings.
617            (profile_screen_renderer): Catch the detailed printout and present
618            it in a dialog.
619            (time_screen_renderer): Raise a dialog to present the result instead
620            of printing it to stdout.
621    
622    2003-10-31  Bernhard Herzog  <[email protected]>
623    
624            * test/test_classification.py (TestClassGroupProperties)
625            (TestClassGroup, TestClassGroupDefault, TestClassGroupRange)
626            (TestClassGroupSingleton, TestClassIterator, TestClassification):
627            Split TestClassification into several classes, one for each class
628            being tested. TestClassification itself now only tests
629            Classification. This split makes changes to the tests a bit easier
630    
631    2003-10-31  Bernhard Herzog  <[email protected]>
632    
633            * Extensions/profiling/profiling.py: New. Extension to measure
634            Thuban performance
635    
636    2003-10-31  Frank Koormann <[email protected]>
637    
638            Added two items to legend popup menu: Remove Layer and Show Layer Table
639    
640            * Thuban/UI/legend.py (LegendPanel._OnRemoveLayer,
641            LegendPanel._OnShowTable): New event handlers, call the corresponding
642            mainwindow methods.
643            (LegendTree._OnRightClick): Added items to popup menu.
644    
645    2003-10-30  Bernhard Herzog  <[email protected]>
646    
647            * Thuban/UI/dialogs.py (ThubanFrame.__init__): Handle
648            EVT_WINDOW_DESTROY
649            (ThubanFrame.OnDestroy): New. Handler for EVT_WINDOW_DESTROY. Does
650            nothing but is convenient for the derived classes.
651    
652            * Thuban/UI/tableview.py
653            (TableFrame.OnDestroy, LayerTableFrame.OnDestroy): New.
654            Unsubscribe the messages here not in OnClose because that might
655            get called multiple times. Fixes RT #2196
656            (TableFrame.OnClose, LayerTableFrame.OnClose): Removed. Not needed
657            anymore.
658    
659            * README: Update the minimum requirement for wxPython. Since we
660            now use the EVT_WINDOW_DESTROY event, we need at least 2.4.0.4,
661            the version in which that was introduced for all platforms
662    
663    2003-10-30  Frank Koormann <[email protected]>
664    
665            * Thuban/UI/join.py (JoinDialog.OnJoin): Wrapped the major parts of
666            the join process in a ThubanBeginBusyCursor, ThubanEndBusyCursor
667            frame.
668    
669    2003-10-30  Jan-Oliver Wagner <[email protected]>
670    
671            Improved APR import extension, added further EPSG definitions
672            and some cleanup regarding string class.
673    
674            * test/test_proj.py (TestProjection.test_get_projection_units_geo):
675            Added test for alias 'longlat'.
676    
677            * Resources/Projections/epsg-deprecated.proj: New. Contains
678            deprecated EPSG definitions.
679    
680            * Extensions/importAPR/odb.py (ODBBaseObject.TreeInfo): Added
681            the variable names for objects.
682    
683            * Extensions/importAPR/apr.py (APR_BLnSym, APR_BMkSym, APR_BShSym): New.
684            Copied from importAPR and provided with documentation.
685    
686            * Extensions/importAPR/importAPR.py (APR_BLnSym, APR_BMkSym, APR_BShSym):
687            Moved to apr.py.
688            (APR_View): Added object ref 'ITheme'.
689    
690            * Thuban/Lib/fileutil.py, Thuban/UI/proj4dialog.py: Replaced string
691            split function by corresponding use of the string class method.
692    
693            * Thuban/Model/xmlwriter.py: Replaced string replace function by
694            corresponding string method.
695    
696    2003-10-29  Bernhard Herzog  <[email protected]>
697    
698            * Thuban/UI/baserenderer.py
699            (BaseRenderer.draw_shape_layer_incrementally): Speed up the
700            special case of a classification that only has the default group
701    
702    2003-10-27  Bernhard Herzog  <[email protected]>
703    
704            * po/fr.po, po/es.po: Updated translations from Daniel Calvelo
705    
706            * po/de.po: Update.
707    
708            * Thuban/UI/application.py
709            (ThubanApplication.ShowExceptionDialog): Handle translation of the
710            dialog message properly
711    
712    2003-10-27  Bernhard Herzog  <[email protected]>
713    
714            Rework how localization works so that we use wx's translation
715            functions when running Thuban as a normal application but not when
716            we don't need any UI, such as in the test suite. See the comment
717            in Thuban/__init__.py for details
718    
719            * Thuban/__init__.py (_): Add one level of indirection to make the
720            translation handling more flexible and to make it possible to use
721            either wx's translation services or not.
722            (gettext_identity, translation_function_installed)
723            (install_translation_function): New function to help with this
724    
725            * Thuban/UI/__init__.py: Install the wx specific translation
726            function if it's OK to do that
727    
728            * test/support.py (initthuban): Install a dummy translation
729            function so that importing Thuban.UI doesn't install a wx specific
730            one for which would need to import wxPython
731    
732    2003-10-27  Bernhard Herzog  <[email protected]>
733    
734            * HOWTO-Release: Source archives should be created first and the
735            binary packages should be created from the source archives.
736            There's an official debian package now so there's no need to test
737            the rpm on debian anymore
738    
739    2003-10-27  Bernhard Herzog  <[email protected]>
740    
741            Several rendering changes:
742    
743             - Render the selection into a separate bitmap so that only that
744               bitmap needs to be redrawn when the selection changes
745    
746             - Render incrementally showing previews and allowing interaction
747               before rendering is complete
748    
749             - Update the renderer interface a bit. Most parameters of
750               RenderMap are now parameters of the constructor
751    
752            * Thuban/UI/baserenderer.py (BaseRenderer.__init__): Add the map
753            and the update region as parameters. Update the doc-string
754            (BaseRenderer.render_map_incrementally): New. Generator function
755            to renders the map incrementally
756            (BaseRenderer.render_map): Remove the map argument (it's now in
757            the constructor) and simply iterate over the
758            render_map_incrementally generator to draw the map.
759            (BaseRenderer.draw_shape_layer_incrementally)
760            (BaseRenderer.draw_shape_layer): Renamed to
761            draw_shape_layer_incrementally and changed into a generator that
762            yields True every 500 shapes. Used by render_map_incrementally to
763            render shape layers incrementally
764    
765            * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Removed the
766            map and region parameters which are now in the constructor
767            (ScreenRenderer.RenderMapIncrementally): New. Public frontend for
768            the inherited render_map_incrementally.
769            (BaseRenderer.draw_shape_layer): Removed.
770            (ScreenRenderer.draw_selection_incrementally): New. The selection
771            drawing part of the removed draw_shape_layer as a generator
772            (ScreenRenderer.layer_shapes): Update because of the region
773            parameter change
774            (ExportRenderer.__init__): New. Extend the inherited constructor
775            with the destination region for the drawing
776            (ExportRenderer.RenderMap): Removed the map and region parameters
777            which are now in the constructor
778    
779            * Thuban/UI/view.py (MapCanvas.PreviewBitmap): New. Return a
780            bitmap suitable for a preview in a tool
781            (CanvasPanTool.MouseMove): Use the PreviewBitmap method to get the
782            bitmap
783            (MapPrintout.draw_on_dc): Adapt to new renderer interface
784            (MapCanvas.OnPaint): Handle drawing the selection bitmap if it
785            exists
786            (MapCanvas.OnIdle): Update the logic to deal with incremental
787            rendering and the selection bitmap
788            (MapCanvas._do_redraw): Handle the instantiation of the render
789            iterator and the redraws during rendering
790            (MapCanvas._render_iterator): New. Generator to incrementally
791            redraw both bitmaps
792            (MapCanvas.Export): Adapt to new renderer interface.
793            (MapCanvas.full_redraw): Reset the selection bitmap and the
794            renderer iterator too
795            (MapCanvas.redraw_selection): New. Force a redraw of the selection
796            bitmap
797            (MapCanvas.shape_selected): Only redraw the selection bitmap
798    
799            * test/test_baserenderer.py
800            (TestBaseRenderer.test_polygon_no_projection)
801            (TestBaseRenderer.test_raster_no_projection)
802            (TestBaseRenderer.test_point_map_projection)
803            (TestBaseRenderer.test_point_layer_and_map_projection)
804            (TestBaseRenderer.test_point_layer_projection)
805            (TestBaseRenderer.test_point_with_classification): Adapt to new
806            renderer interface
807    
808    2003-10-24  Bernhard Herzog  <[email protected]>
809    
810            * libraries/thuban/wxproj.cpp (draw_polygon_shape)
811            (point_in_polygon_shape, shape_centroid): Raise an exception if
812            the shape can't be read. Previously invalid shape ids would lead
813            to a segfault.
814    
815            * test/test_wxproj.py (TestShapeCentroid.test_invalid_shape_id):
816            New. test whether an exception is raised for invalid shape ids
817    
818    2003-10-24  Jan-Oliver Wagner <[email protected]>
819    
820            * Thuban/Model/proj.py (Projection.GetProjectedUnits): Added 'longlat'
821            as alias for 'latlong'.
822    
823            * Thuban/UI/projdialog.py (ProjFrame.__init__): Added 'longlat'
824            as alias for 'latlong'.
825    
826    2003-10-24  Jan-Oliver Wagner <[email protected]>
827    
828            * Thuban/UI/projdialog.py (ProjFrame.proj_selection_changed): Set
829            the projection even for the UnknownPanel.
830            (UnknownProjPanel.__init__): Define the text and create the textctrl
831            widget.
832            (UnknownProjPanel._DoLayout): Replaced static text widget by the
833            textctrl created in __init__.
834            (UnknownProjPanel.SetProjection): Set the text for the text ctrl
835            including the parameters of the projection.
836            
837    2003-10-24  Jan-Oliver Wagner <[email protected]>
838    
839            * Resources/Projections/epsg.proj: New. This is a list of
840            EPSG codes with parameters for proj. The list has been
841            generated using devtools/create_epsg.py based on the
842            file nad/epsg of the proj 4.4.7 package. Four projection
843            definitions have been deleted as they are not accepted by proj:
844            "CH1903+ / LV95", "Bern 1898 (Bern) / LV03C", "CH1903 / LV03"
845            and "HD72 / EOV".
846    
847    2003-10-22  Bernhard Herzog  <[email protected]>
848    
849            Some more tweaks to the projection dialog which should fix RT
850            #1886.
851    
852            * Thuban/UI/projlist.py (ProjectionList.Destroy): Unsubscribe from
853            the ProjFile's messages and call the base class methods correctly
854            (ProjectionList.SelectProjection): Set the wxLIST_STATE_FOCUSED
855            flag on the newly selected item too. Otherwise some other item is
856            focused and the first time the focus is moved with the keyboard
857            the selection moves in unexpected ways.
858    
859            * Thuban/UI/projdialog.py (ProjFrame.__init__): Do not set the
860            focus on the OK button, only on the projection list. That way the
861            list really has the focus initially
862            (ProjFrame.OnClose): Call the projection list's Destroy method to
863            make it unsubscribe all messages
864    
865    2003-10-21  Bernhard Herzog  <[email protected]>
866    
867            Rework the projection dialog to fix a few bugs, including RT 2166
868            and most of 2168
869    
870            * Thuban/UI/projlist.py: New. The class ProjectionList is a
871            special wxListCtrl to show a list of projections in a more MVC
872            fashion
873    
874            * Thuban/UI/projdialog.py (ProjFrame): Substantial changes
875            throughout the class. The main change is to use the ProjectionList
876            class instead of a normal wxListBox. Also, add an explicit
877            "Unknown" projection to the projection choice control.
878            (ProjPanel.__init__): Add an "unknown" ellipsoid
879            (TMPanel.__init__, LCCPanel.__init__): Tweak the order of
880            instantiation of the panel's controls to make the tab-order more
881            natural
882    
883    2003-10-21  Bernhard Herzog  <[email protected]>
884    
885            * test/test_load.py (TestSingleLayer.file_contents)
886            (TestSingleLayer.test): Add non-ascii characters to the titles of
887            session, map and layer. This is effectively a port of the
888            TestUnicodeStrings test in test_load_0_8.py which for some reason
889            was only added there.
890    
891            * test/test_load_0_9.py (TestSingleLayer.file_contents)
892            (TestSingleLayer.test): Same as in test_load.py: add non-ascii
893            characters to the titles of session, map and layer,.
894    
895    2003-10-21  Bernhard Herzog  <[email protected]>
896    
897            Add EPSG projection handling to .thuban files
898    
899            * test/test_save.py (SaveSessionTest.dtd)
900            (SaveSessionTest.testEmptySession)
901            (SaveSessionTest.testLayerProjection)
902            (SaveSessionTest.testRasterLayer)
903            (SaveSessionTest.testClassifiedLayer)
904            (SaveSessionTest.test_dbf_table)
905            (SaveSessionTest.test_joined_table)
906            (SaveSessionTest.test_save_postgis): Update to 1.0-dev namespace
907            (SaveSessionTest.testSingleLayer): Update to 1.0-dev namespace and
908            use a and epsg projection to test saving them
909    
910            * test/test_load.py (LoadSessionTest.dtd): Update to 1.0-dev
911            namespace
912            (TestLayerVisibility.file_contents, TestLabels.file_contents)
913            (TestLayerProjection.file_contents)
914            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
915            (TestPostGISLayer.file_contents)
916            (TestPostGISLayerPassword.file_contents)
917            (TestLoadError.file_contents, TestLoadError.test): Update to use
918            1.0-dev namespace
919            (TestSingleLayer.file_contents, TestSingleLayer.test): Update to
920            use 1.0-dev namespace and use an EPSG projection to test whether
921            loading it works
922    
923            * test/test_load_0_9.py: New. Effectively a copy of test_load.py
924            as of Thuban 0.9. These are now tests to determine whether Thuban
925            can still read files generated by Thuban 0.9
926    
927            * Thuban/Model/save.py (SessionSaver.write)
928            (SessionSaver.write_session): Use the 1.0 dtd and 1.0-dev
929            namespace
930            (SessionSaver.write_projection): Write the projection's epsg
931            attribute
932    
933            * Thuban/Model/load.py (SessionLoader.__init__): Also accept the
934            thuban-1.0-dev.dtd namespace
935            (SessionLoader.check_attrs): Allow a callable object as conversion
936            too
937            (SessionLoader.start_projection, SessionLoader.end_projection)
938            (SessionLoader.start_parameter): Handle the epsg attribute and
939            rename a few instance variables to lower case
940    
941            * Resources/XML/thuban-1.0.dtd: New. Only difference to
942            thuban-0.9.dtd is the epsg attribute for projections.
943    
944    2003-10-21  Bernhard Herzog  <[email protected]>
945    
946            * test/runtests.py (main): Let the user specify which tests to run
947            on the command line
948    
949            * test/support.py (ThubanTestResult.getDescription): Override to
950            give a better short description. The description can be used as a
951            parameter to run_tests to run that particular test in isolation.
952    
953    2003-10-21  Frank Koormann   <[email protected]>
954    
955            Popup menu for legend. Scheduled for the 1.2 release this was too
956            simple to implement: The popup menu is bound to the legend tree, while
957            the events are hanlded by its anchestor, the legend panel. This
958            allows reuse of all the event handlers already implemented for the
959            legend toolbar buttons.
960    
961            * Thuban/UI/legend.py (LegendPanel.__init__): EVT_MENU macros
962            to add handlers for the events issued by the popup menu.
963            (LegendPanel._OnToggleVisibility): Handler for toggling layer
964            visibility event
965            (LegendPanel._OnProjection): Handler for layer projection event.
966            (LegendTree.__init__): Added EVT_TREE_ITEM_RIGHT_CLICK
967            (LegendTree._OnRightClick): Event handler for right click, select item
968            and pop up menu.
969            (LegendTree.ToggleVisibility): Toggle layer visibility
970            (LegendTree.LayerProjection): Raise layer projection dialog for
971            current layer.
972    
973    2003-10-21  Bernhard Herzog  <[email protected]>
974    
975            * Resources/Projections/defaults.proj: Use correct DOCTYPE
976            declaration. The top-level element is projectionlist not projfile
977    
978    2003-10-20  Bernhard Herzog  <[email protected]>
979    
980            * Thuban/UI/projdialog.py (ProjFrame.write_proj_file): New. helper
981            method to write a projfile and display a busy cursor and error
982            dialogs.
983            (ProjFrame._OnSave, ProjFrame._OnAddToList, ProjFrame._OnImport)
984            (ProjFrame._OnExport, ProjFrame._OnRemove): Use write_proj_file
985            (ProjFrame.__FillAvailList): Translate "<None>" too and display a
986            busy cursor while loading the user and system prj files.
987    
988    2003-10-16  Bernhard Herzog  <[email protected]>
989    
990            * Thuban/Model/resource.py (projfile_cache): Introduce a cache for
991            ProjFile objects
992            (clear_proj_file_cache): New function to clear the cache. Mainly
993            useful for use by the test suite
994            (read_proj_file): Use the cache.
995    
996            * test/test_proj.py (TestProjFile): Clarify the doc-string
997            (ProjFileReadTests): Update doc-string
998            (ProjFileReadTests.test_get_system_proj_file): Check whether the
999            system proj files is cached.
1000            (ProjFileLoadTestCase): New base class for the proj file tests
1001            derived from support.FileLoadTestCase to provide some common
1002            behavior.
1003            (TestLoadingProjFile)
1004            (TestLoadingProjFileWithEmptyProjectionlist.file_contents)
1005            (TestProjFileWithInvalidParameters.file_contents): Derive from
1006            ProjFileLoadTestCase
1007            (TestLoadingProjFile.test_caching): New. Test whether the cache
1008            works
1009    
1010    2003-10-16      Silke Reimer    <[email protected]>
1011    
1012            * debian/*: New directory with configuration files for building a thuban
1013              deb-package.
1014    
1015    2003-10-14  Bernhard Herzog  <[email protected]>
1016    
1017            * test/test_proj.py: Execute support.run_tests when run as
1018            __main__ so that missing unsubscribes are detected
1019            (TestProjFile.tearDown): Destroy the proj_file properly
1020    
1021    2003-10-14  Bernhard Herzog  <[email protected]>
1022    
1023            * Thuban/Model/messages.py (PROJECTION_ADDED)
1024            (PROJECTION_REPLACED, PROJECTION_REMOVED): New message types for
1025            the ProjFile objects
1026    
1027            * Thuban/Model/proj.py (ProjFile): Derive from Publisher so we can
1028            easily send messages when the projections change
1029            (ProjFile.Add, ProjFile.Remove, ProjFile.Replace): Issue messages
1030            when the change was successful
1031    
1032            * test/test_proj.py (TestProjFile.setUp): Subscribe to some of the
1033            proj file messages
1034            (TestProjFile.test_add_remove)
1035            (TestProjFile.test_remove_non_existing)
1036            (TestProjFile.test_replace)
1037            (TestProjFile.test_replace_non_existing): Test whether the right
1038            messages are sent
1039    
1040    2003-10-14  Bernhard Herzog  <[email protected]>
1041    
1042            * test/test_proj.py (TestProjFile.test): Refactor into several
1043            tests
1044            (TestProjFile.test_add_remove)
1045            (TestProjFile.test_remove_non_existing)
1046            (TestProjFile.test_replace)
1047            (TestProjFile.test_replace_non_existing): Some of the new
1048            individual test cases
1049            (TestProjFileSimple): New class for the rest of the test cases
1050            that came out of the refactoring
1051            (ProjFileTest): Derive from xmlsupport.ValidationTest so that the
1052            derived classes don't have to
1053    
1054    2003-10-13  Bernhard Herzog  <[email protected]>
1055    
1056            Add an optional EPSG code to the projection objects and extend the
1057            .proj file format accordingly.
1058    
1059            * Resources/XML/projfile.dtd (element projection): Add epsg
1060            attribute
1061    
1062            * Thuban/Model/proj.py (Projection.__init__): New parameter and
1063            instance variable epsg. Update doc-string
1064            (Projection.EPSGCode, Projection.Label): New methods to provide
1065            access to EPSG code and a label for use in dialogs
1066    
1067            * Thuban/Model/resource.py (ProjFileReader.start_projection)
1068            (ProjFileReader.end_projection, ProjFileSaver.write_projfile):
1069            Handle the epsg code attribute when reading or writing proj files
1070    
1071            * Thuban/UI/projdialog.py (ProjFrame._OnSave)
1072            (ProjFrame._OnAddToList, ProjFrame.__DoOnProjAvail)
1073            (ProjFrame.__FillAvailList): Use the projection's Label method to
1074            get the string for the list box
1075    
1076            * test/test_proj.py (TestProjection.test_label)
1077            (TestProjection.test_label_epsg)
1078            (TestProjection.test_epsgcode_for_non_epsg_projection)
1079            (TestProjection.test_epsgcode_for_real_epsg_projection): New tests
1080            for the label and EPSGCode methods
1081            (WriteProjFileTests.doTestWrite, WriteProjFileTests.test_write)
1082            (WriteProjFileTests.test_write_empty_file): Create the ProjFile
1083            objects in the test cases and put the expected contents into the
1084            test case methods too. Update doTestWrite accordingly
1085            (TestLoadingProjFile)
1086            (TestLoadingProjFileWithEmptyProjectionlist): New classes with the
1087            read tests from TestProjFile.
1088            (TestProjFile.doTestRead, TestProjFile.testRead): Removed. These
1089            tests are now in the new classes.
1090            (sample_projfile, sample_projfile_data)
1091            (sample_projfile2, sample_projfile_data2): Removed. Not used
1092            anymore.
1093            (TestProjFile.test_read_unreadable_file): No need to reset the
1094            permissions at the end anymore since we use a unique filename
1095    
1096    2003-10-13  Bernhard Herzog  <[email protected]>
1097    
1098            * test/test_proj.py: Some more refactoring of the test cases
1099            (ProjFileTest): New base class for the proj file tests.
1100            (TestProjFile): Derive from ProjFileTest
1101            (TestProjFile.test_read_unreadable_file)
1102            (TestProjFile.test_read_empty_file, TestProjFile.doTestRead): Use
1103            the new filename method to get a unique filename
1104            (TestProjFile.doTestWrite, TestProjFile.testWrite): Removed.
1105            (WriteProjFileTests): New class for proj file write tests.
1106            Contains the write test that were in TestProjFile originally.
1107    
1108    2003-10-13  Bernhard Herzog  <[email protected]>
1109    
1110            * test/test_proj.py (TestProjFile.testRead)
1111            (TestProjFile.test_read_non_existing_file)
1112            (TestProjFile.test_read_unreadable_file)
1113            (TestProjFile.test_read_empty_file): Split into several methods.
1114    
1115    2003-10-10  Bernhard Herzog  <[email protected]>
1116    
1117            * Thuban/UI/sizers.py: New file with custom sizers.
1118    
1119            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Instantiate
1120            all projection type specific panels and put them into a
1121            NotebookLikeSizer. This way the dialog doesn't change its size
1122            when a different projection is selected
1123            (ProjFrame.__init__): Rename projection_panels
1124            projection_panel_defs and reuse projection_panels for a list of
1125            the instantiated panels.
1126            (ProjFrame._show_proj_panel, ProjFrame.__DoOnProjAvail)
1127            (ProjFrame.__DoOnProjChoice): Changes due to the new handling of
1128            the panels
1129            (UnknownProjPanel._DoLayout): Place the newlines in the message
1130            differently to make the panel narrower.
1131            (TMPanel._DoLayout): Layout the parameters in one column.
1132    
1133    2003-10-10  Bernhard Herzog  <[email protected]>
1134    
1135            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): New method
1136            that contains all the setup for the dialog's widgets, layout and
1137            event handling.
1138            (__): Call build_dialog to build the dialog.
1139            (ProjFrame.__set_properties, ProjFrame.__do_layout): Removed.
1140            Their functionality is now in build_dialog
1141            (ProjFrame.__VerifyButtons, ProjFrame.__VerifyButtons)
1142            (ProjFrame.__DoOnProjAvail, ProjFrame.__DoOnProjAvail)
1143            (ProjFrame.__DoOnProjChoice): Small updates due to slightly
1144            different widget names and hierarchy introduced with build_dialog.
1145    
1146    2003-10-10  Bernhard Herzog  <[email protected]>
1147    
1148            * README: Fix typo.
1149    
1150    2003-10-09  Bernhard Herzog  <[email protected]>
1151    
1152            * Thuban/Model/proj.py (ProjFile.Add): Do not check whether the
1153            projection is already in the list. This is *a lot* faster when
1154            loading files with hundreds of projections since it saves a linear
1155            search. OTOH this will allow adding the same projection to the
1156            user.proj file multiple times in the projection dialog but we'll
1157            deal with that later
1158    
1159    2003-10-09  Jan-Oliver Wagner <[email protected]>
1160    
1161            * devtools: New. Directory for developer tools that are not intended
1162            for the regular user.
1163    
1164            * devtools/create_epsg.py: New. Convert the epsg file of proj into
1165            a python .proj file.
1166    
1167    2003-10-09  Bernhard Herzog  <[email protected]>
1168    
1169            * test/test_proj.py
1170            (TestProjection.test_get_parameter_without_equals_sign): New. Test
1171            whether GetParameter handles parameters without "=" sign correctly
1172    
1173            * Thuban/Model/proj.py (Projection.GetParameter): Handle
1174            parameters that do not contain a "=". Update the doc-string
1175    
1176    2003-10-08  Bernhard Herzog  <[email protected]>
1177    
1178            * Thuban/UI/projdialog.py (ProjFrame.__set_properties): Remove the
1179            length limit on the projname text control
1180    
1181    2003-10-08  Bernhard Herzog  <[email protected]>
1182    
1183            * test/test_proj.py (TestProjection.test_get_projection_units_geo)
1184            (TestProjection.test_get_projection_units_normal): New. Tests for
1185            the Projection.GetProjectedUnits method
1186    
1187    2003-10-08  Jan-Oliver Wagner <[email protected]>
1188    
1189            * Thuban/Model/resource.py (get_user_proj_file): small bug-fix:
1190            Added missing 'val' parameter.
1191    
1192    2003-10-08  Bernhard Herzog  <[email protected]>
1193    
1194            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): When the
1195            projection type of the currently selected projection is not known,
1196            i.e. there's no panel for it, use the UnknownProjPanel
1197            (ProjFrame.__DoOnProjChoice, ProjFrame._show_proj_panel): Split
1198            the actual replacing of the proj panel into the new method
1199            _show_proj_panel.
1200            (UnknownProjPanel): Add doc-string.
1201            (UnknownProjPanel._DoLayout): Insert a newline into the text so
1202            that the panel is not so wide.
1203    
1204    2003-10-08  Bernhard Herzog  <[email protected]>
1205    
1206            * Thuban/Model/resource.py (read_proj_file): Return the warnings
1207            too. Update the doc-string
1208            (get_proj_files): Removed. It wasn't used anywhere
1209            (get_system_proj_files, get_system_proj_file): Rename to
1210            get_system_proj_file and return the ProjFile object and not a list
1211            of ProjFile objects. Update the callers.
1212            (get_user_proj_files, get_user_proj_file): Rename to
1213            get_user_proj_file return the ProjFile object and not a list of
1214            ProjFile objects. Update the callers.
1215            (ProjFileReader.__init__): New instance variable for the warnings.
1216            Rename the __pf ivar to projfile. Update the methods referring to
1217            __pf
1218            (ProjFileReader.end_projection): Catch any errors raised when
1219            instantiating the projection and record that as an error. The
1220            projection will not be in the final ProjFile object.
1221            (ProjFileReader.GetWarnings): New method to return the warnings.
1222    
1223            * Thuban/UI/projdialog.py (ProjFrame.show_warnings): New method to
1224            show the warnings from the projfile reader
1225            (ProjFrame._OnImport): Deal with any warnings returned by
1226            read_proj_file
1227            (ProjFrame.__FillAvailList): Deal with any warnings returned by
1228            get_system_proj_file or get_user_proj_file.
1229    
1230            * test/test_proj.py (TestProjFile.doTestRead): Check the warnings.
1231            (TestProjFileWithInvalidParameters.file_contents): New test cases
1232            to test whether read_proj_file handles invalid projection
1233            parameters correctly
1234            (TestProjFile.test_get_system_proj_file): New. Simple test for
1235            resource.get_system_proj_file
1236    
1237    2003-10-07  Bernhard Herzog  <[email protected]>
1238    
1239            * test/test_derivedshapestore.py
1240            (TestDerivedShapeStoreExceptions.tearDown): Clear the session
1241            properly so that the temporary directories get deleted correctly
1242    
1243    2003-10-06  Bernhard Herzog  <[email protected]>
1244    
1245            Handle the title changes in a proper MVC way.
1246    
1247            * Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the
1248            canvas' TITLE_CHANGED messages
1249            (MainWindow.update_title): New. Update the main window's title
1250            (MainWindow.__SetTitle): Removed. Use update_title instead.
1251            (MainWindow.SetMap): Use update_title instead of __SetTitle
1252            (MainWindow.RenameMap): Do change the window title explicitly
1253            here. That's handled in a proper MVC way now.
1254            (MainWindow.title_changed): New. Subscriber for the TITLE_CHANGED
1255            messages
1256    
1257            * Thuban/Lib/connector.py (Conduit): New class to help classes
1258            that forward messages
1259    
1260            * Thuban/UI/viewport.py: Forward the map's TITLE_CHANGED messages
1261            (ViewPort): Derive from Conduit instead of Publisher
1262            (ViewPort.Subscribe, ViewPort.Unsubscribe): Use the new base class
1263            when calling the inherited versions
1264            (ViewPort._subscribe_map, ViewPort._unsubscribe_map): New helper
1265            methods to subscribe and unsubscribe map messages
1266            (ViewPort.SetMap, ViewPort.Destroy): Use the new helper methods to
1267            handle the map subscriptions
1268            (ViewPort.Map, ViewPort.map_projection_changed)
1269            (ViewPort.layer_projection_changed): Add or update doc-strings
1270    
1271            * test/test_connector.py (TestPublisher.test_issue_simple): Fix
1272            typo
1273            (MyConduit): Helper class for the Conduit test.
1274            (TestConduit): Test cases for Conduit
1275    
1276            * test/test_connector.py: Use support.run_tests as main.
1277    
1278            * test/test_viewport.py (ViewPortTest.setUp): Also subscribe to
1279            the TITLE_CHANGED messages
1280            (ViewPortTest.test_forwarding_title_changed): New test to check
1281            whether the viewport forwards the map's TITLE_CHANGED messages
1282            (TestViewportWithPostGIS.tearDown): Call the map's Destroy method
1283            after the port's because the latter may require a still functional
1284            map.
1285    
1286    2003-10-06  Bernhard Herzog  <[email protected]>
1287    
1288            * Thuban/UI/application.py (ThubanApplication.maps_changed): Add
1289            doc-string
1290    
1291  2003-10-06  Bernhard Herzog  <[email protected]>  2003-10-06  Bernhard Herzog  <[email protected]>
1292    
1293          * test/test_viewport.py (ViewPortTest.setUp)          * test/test_viewport.py (ViewPortTest.setUp)

Legend:
Removed from v.1775  
changed lines
  Added in v.2022

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26