/[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 1870 by bh, Mon Oct 27 13:24:20 2003 UTC revision 1973 by bh, Mon Nov 24 19:23:28 2003 UTC
# Line 1  Line 1 
1    2003-11-24  Bernhard Herzog  <[email protected]>
2    
3            * Thuban/Model/data.py (ShapefileStore._open_shapefile)
4            (ShapefileStore.__init__): Factor opening the shapefile into a
5            separate method (the new _open_shapefile). This makes the code a
6            bit more readable but the real reason is that it makes some evil
7            hacks easier. :-)
8    
9    2003-11-24  Bernhard Herzog  <[email protected]>
10    
11            * Thuban/Model/load.py (SessionLoader.check_attrs): If no
12            converter is specified for an attribute assume it's a string
13            containing only Latin1 characters. Update doc-string accordingly.
14            This change should fix many places where unicode objects might
15            accidentally enter Thuban.
16    
17            * test/test_load.py (TestNonAsciiColumnName): New test to check
18            what happens with column names in DBF files that contain non-ascii
19            characters
20    
21    2003-11-21  Bernhard Herzog  <[email protected]>
22    
23            Enable the experimental attribute editing again and introduce a
24            command line switch to actually activate it
25    
26            * Thuban/UI/main.py (options): New. Container for options set on
27            the commmand line
28            (main): Add the --enable-attribute-editing flag.
29    
30            * Thuban/UI/identifyview.py (IdentifyView.__init__): If attribute
31            editing is enabled use the grid ctrl which allows editing of the
32            values
33    
34            * Thuban/Model/transientdb.py (AutoTransientTable.write_record):
35            New. Just delegate this to the underlying table.
36    
37    2003-11-20  Bernhard Herzog  <[email protected]>
38    
39            * test/test_proj.py (ProjFileReadTests.test_read_unreadable_file):
40            Skip this test if run under non-posix systems since it only works
41            there
42    
43    2003-11-19  Bernhard Herzog  <[email protected]>
44    
45            * Thuban/Model/resource.py: Rework the way gdal support is
46            determined so that we can give a reason in the about why gdal is
47            not supported.
48            (gdal_support_status): New. Variable holding a string with the
49            reason for no gdal support
50    
51            * Thuban/UI/about.py (About.__init__): Add the reason why gdal is
52            not supported to the message
53    
54    2003-11-19  Bernhard Herzog  <[email protected]>
55    
56            Remove the old table interface and its test cases
57    
58            * Thuban/Model/table.py (OldTableInterfaceMixin): Removed.
59            (DBFTable, MemoryTable): Do not derive from OldTableInterfaceMixin
60            anymore
61    
62            * Thuban/Model/transientdb.py (TransientTableBase)
63            (AutoTransientTable): Do not derive from OldTableInterfaceMixin
64            anymore
65    
66            * test/test_table.py: Removed since the old interface it tests is
67            gone.
68    
69            * test/runtests.py (main): The old table interface is gone and
70            with it the deprecation warnings so remove the code that turns
71            these warnings into errors
72    
73    2003-11-19  Bernhard Herzog  <[email protected]>
74    
75            * test/test_table.py: Revert to revision 1.5 again. Changing the
76            tests to use the new table interface is completely wrong since the
77            whole purpose of the tests in this module is to test the old
78            interface.
79    
80    2003-11-18  Bernhard Herzog  <[email protected]>
81    
82            * Thuban/Model/postgisdb.py (PostGISConnection.MatchesParameters):
83            New. Test whether the connection matches a set of connection
84            parameters
85    
86            * Thuban/UI/dbdialog.py (DBFrame.conns_changed): Fix doc-string
87            (DBFrame.OnAdd): Use the new MatchesParameters method when looking
88            for existing connections with the same parameters and break out of
89            the loop correctly.
90    
91            * test/test_postgis_db.py (TestBriefDescription)
92            (TestPostGISSimple.test_brief_description): Rename
93            TestBriefDescription to TestPostGISSimple and the test method to
94            test_brief_description so that we can add more test methods.
95            (TestPostGISSimple.test_matches_parameters): New. Test the new
96            MatchesParameters method
97    
98    2003-11-18  Bernhard Herzog  <[email protected]>
99    
100            * Thuban/Lib/connector.py (Publisher): Introduce a new flag,
101            _was_destroyed, to indicate whether an publisher instance has
102            already been destroyed.
103            (Publisher.Unsubscribe): Only disconnect if the publisher has not
104            been destroyed yet.
105            (Publisher.Destroy): Set the _was_destroyed flag to true.
106    
107            * test/test_connector.py
108            (TestPublisher.test_unsubscribe_after_destroy): New. Test that
109            calling Unsubscribe after Destroy doesn't raise an exception
110    
111    2003-11-14  Bernhard Herzog  <[email protected]>
112    
113            * Thuban/UI/identifyview.py (IdentifyView.selected_shape): Fix
114            typo in doc-string
115    
116    2003-11-13  Bernhard Herzog  <[email protected]>
117    
118            Quote table and column names properly for postgis.
119    
120            * Thuban/Model/postgisdb.py (quote_identifier): New. Function to
121            quote an identifier for use in an sql statement
122            (PostGISColumn.__init__): Add the quoted_name attribute
123            (PostGISTable.__init__): New instance variable quoted_tablename
124            (PostGISTable._fetch_table_information): Use the quoted table
125            name. New isntance variable quoted_geo_col with a quoted version
126            of geometry_column
127            (PostGISTable.NumRows, PostGISTable.RowIdToOrdinal)
128            (PostGISTable.RowOrdinalToId): Use the quoted table name
129            (PostGISTable.ReadValue, PostGISTable.ValueRange)
130            (PostGISTable.UniqueValues, PostGISTable.SimpleQuery)
131            (PostGISShapeStore.BoundingBox, PostGISShapeStore.Shape)
132            (PostGISShapeStore.AllShapes, PostGISShapeStore.ShapesInRegion):
133            Use quoted table and column names
134    
135            * test/test_postgis_db.py (TestPostGISSpecialCases)
136            (TestPostGISIgnoredColumns): Rename the class to
137            TestPostGISSpecialCases because that better describes the new
138            cases
139            (TestPostGISSpecialCases.test_unsupported_types)
140            (TestPostGISSpecialCases.test): Rename the method to
141            test_unsupported_types because we need a more descriptive name now
142            that there are more methods
143            (TestPostGISSpecialCases.test_table_name_quoting)
144            (TestPostGISSpecialCases.test_column_name_quoting)
145            (TestPostGISSpecialCases.test_shapestore_name_quoting): New test
146            cases to test quoting of table and column names in PostGISTable
147            and PostGISShapeStore
148    
149            * test/postgissupport.py
150            (skip_if_addgeometrycolumn_does_not_use_quote_ident): New. Skip if
151            AddGeometryColumn desn't support table or column names with sapces
152            or double quotes
153    
154    2003-11-12  Jan-Oliver Wagner <[email protected]>
155    
156            * Extensions/wms/__init__.py: New: Init to make this
157            directory a package.
158    
159            * Extensions/wms/wms.py: New: Provide layers via OGC WMS.
160    
161    2003-11-11  Bernhard Herzog  <[email protected]>
162    
163            * Thuban/Model/resource.py (EPSG_DEPRECATED_PROJ_FILE): New.
164            Constant for the file woth deprecated epsg projections
165            (get_system_proj_file): Update doc-string
166    
167            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Add a space
168            above the EPS widgets, introduce a check box for the deprecated
169            eps projections and a label for the epsg widgets
170            (ProjFrame._OnShowEPSG): Handle the deprecated EPSG projections
171            too
172    
173    2003-11-11  Bernhard Herzog  <[email protected]>
174    
175            Avoid warnings when run under Python 2.3
176    
177            * Thuban/UI/baserenderer.py (BaseRenderer.draw_point_shape)
178            (BaseRenderer.draw_label_layer): Coordinates must be ints.
179    
180            * Thuban/UI/renderer.py (MapRenderer.make_point): Turn this into a
181            real method so that we can convert to int.
182            (MapRenderer.label_font): The font size mist be an int.
183    
184            * Thuban/UI/common.py (Color2wxColour): The color values must be
185            ints. Also, remove the unnecessary asserts.
186    
187            * test/test_load_0_8.py (TestUnicodeStrings.file_contents)
188            (TestUnicodeStrings.test): Python source code should not contain
189            non-ascii characters unless an encoding is specified in the file.
190            Therefore use \x escapes in the string literals for non-ascii
191            characters.
192    
193    2003-11-11  Bernhard Herzog  <[email protected]>
194    
195            * Thuban/Model/resource.py (get_system_proj_file): Add a filename
196            parameter so that this function can be used for all proj files in
197            Resource/Projections
198            (DEFAULT_PROJ_FILE, EPSG_PROJ_FILE): New. Predefined filenames for
199            get_system_proj_file
200    
201            * Thuban/UI/projdialog.py (ProjFrame.__init__): Instead of one
202            ProjFile self.__sysProjFile use a dictionary of system ProjFile
203            objects self._sys_proj_files
204            (ProjFrame.build_dialog): Adapt to the new changes in the
205            ProjectionList constructor. Add a check button to toggle whether
206            EPSG projections are shown
207            (ProjFrame._OnShowEPSG): New. Handler for the epsg check button
208            events.
209            (ProjFrame.load_user_proj, ProjFrame.load_system_proj): Only show
210            the busy cursor if the files have not yet been loaded by the
211            dialog.
212            (ProjFrame.load_system_proj): Add a parameter for the name of the
213            proj file. Maintain the dictionary of system projections
214            self._sys_proj_files
215    
216            * Thuban/UI/projlist.py (ProjectionList): Merge the system_projs,
217            user_projs parameters into one parameter proj_files which is a
218            list of proj files.
219            (ProjectionList._subscribe_proj_files)
220            (ProjectionList._unsubscribe_proj_files): New. Move
221            subscription/unsubscription of projfile messages to separate
222            methods
223            (ProjectionList.Destroy): The unsubscribe is now done in
224            _unsubscribe_proj_files
225            (ProjectionList.update_projections): We now have a list of proj
226            file objects
227            (ProjectionList.SetProjFiles): New method to set a new list of
228            proj file objects
229    
230            * test/test_proj.py (ProjFileReadTests.test_get_system_proj_file):
231            Specify explicitly which system proj file to load.
232    
233    2003-11-11  Bernhard Herzog  <[email protected]>
234    
235            * Thuban/Model/load.py (SessionLoader.Destroy): New. Clear all
236            instance variables to cut cyclic references. The GC would have
237            collected the loader eventually but it can happen that it doesn't
238            run at all until thuban is closed (2.3 but not 2.2 tries a bit
239            harder and forces a collection when the interpreter terminates)
240            (load_session): Call the handler's Destroy method to make sure
241            that it gets garbage collected early. Otherwise it will be
242            collected very late if at all and it holds some references to e.g.
243            shapestores and the session which can lead to leaks (of e.g. the
244            temporary files)
245    
246            * test/test_load.py (TestSingleLayer.test_leak): New. test for the
247            resource leak in load_session
248    
249    2003-11-10  Bernhard Herzog  <[email protected]>
250    
251            * Thuban/UI/baserenderer.py: Add a way to specify how layers in
252            extensions are to be rendered.
253            (_renderer_extensions): New. List with renderer for layers in
254            extensions
255            (add_renderer_extension): New. Add a renderer extension
256            (init_renderer_extensions): New. Init the renderer extensions
257            (BaseRenderer.render_map_incrementally): Search
258            _renderer_extensions for how to draw unknown layer types
259            (BaseRenderer.draw_raster_data): Add format parameter so that
260            formats other than BMP can be drawn
261            (BaseRenderer.draw_raster_layer): Pass an explicit format to
262            draw_raster_data
263    
264            * Thuban/UI/renderer.py (raster_format_map): New. Mapping form the
265            strings of the format parameter of draw_raster_data method to wx
266            constants
267            (MapRenderer.draw_raster_data): Add the format parameter and use
268            raster_format_map to map it to the right wxwindows constant for
269            wxImageFromStream
270    
271            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Add
272            the format parameter and record it
273            (TestBaseRenderer.test_raster_no_projection): check the format
274            paramter of the draw_raster_data method
275            (TestBaseRenderer.test_renderer_extension): New. Test the renderer
276            extension facility
277    
278    2003-11-07  Bernhard Herzog  <[email protected]>
279    
280            Tweak the usage of the sqlite database to make common use cases
281            more responsive. In most cases copying the data to the sqlite
282            database takes so long that using sqlite doesn't have enough
283            advantages.
284    
285            * Thuban/Model/transientdb.py (TransientTableBase.ValueRange): Add
286            comments about performance and query the min and max in separate
287            statements because only that way will indexes be used.
288            (TransientTableBase.UniqueValues): Add some comments about
289            performance.
290            (AutoTransientTable.ValueRange, AutoTransientTable.UniqueValues):
291            Do not copy the data to the transient DB but use the transient
292            copy if it exists. See the new comments for the performance trade
293            offs
294    
295            * test/test_transientdb.py
296            (TestTransientTable.test_auto_transient_table): Make sure that the
297            data is copied to the transient database at some point.
298    
299    2003-11-03  Bernhard Herzog  <[email protected]>
300    
301            * Thuban/Model/data.py (ShapefileStore.ShapesInRegion): Bind some
302            globals to locals so that it's a bit faster
303    
304    2003-11-03  Bernhard Herzog  <[email protected]>
305    
306            * Thuban/UI/baserenderer.py
307            (BaseRenderer.draw_shape_layer_incrementally): Use the ReadValue
308            method. ReadValue is faster than ReadRowAsDict since it only reads
309            one cell especially now that the dbf file objects actually
310            implement it.
311    
312            * Thuban/Model/table.py (DBFTable.ReadValue): Use the new
313            read_attribute method of the dbf objects
314    
315    2003-11-03  Bernhard Herzog  <[email protected]>
316    
317            * Extensions/profiling/profiling.py (popup_dialog_box): New config
318            variable to indicate whether the result should be shown in a
319            dialog box
320            (profile_screen_renderer, time_screen_renderer): Only show a
321            dialog box if popup_dialog_box is true.
322            (profile_screen_renderer): Flush stdout after the printing the
323            first part of the "profiling..." message
324    
325            * Thuban/UI/baserenderer.py
326            (BaseRenderer.draw_shape_layer_incrementally): Cache the pens and
327            brushes for the groups so that they're not created over and over
328            again
329    
330            * Thuban/Model/classification.py (Classification.__getattr__)
331            (Classification._compile_classification)
332            (Classification._clear_compiled_classification): New. Methods to
333            manage a 'compiled' representation of the classification groups
334            which is created on demand
335            (Classification.InsertGroup, Classification.RemoveGroup)
336            (Classification.ReplaceGroup): reset the compiled representation
337            (Classification.FindGroup): Use the compiled representation to
338            find the matching group
339            (ClassGroupRange.GetRangeTuple): New. Return the range as a tuple
340    
341    2003-10-31  Bernhard Herzog  <[email protected]>
342    
343            * Thuban/Model/classification.py (Classification.SetDefaultGroup):
344            Send a CLASS_CHANGED message
345            (Classification.RemoveGroup): Send a CLASS_CHANGED message and do
346            not return the removed group since it wasn't used.
347    
348            * test/test_classification.py
349            (TestClassification.test_set_default_group): New. Test the
350            SetDefaultGroup method
351            (TestClassification.test_insert_group): New. Test the InsertGroup
352            method
353            (TestClassification.test_remove_group): New. Test the RemoveGroup
354            method
355            (TestClassification.test_replace_group): New. Test the
356            ReplaceGroup method
357    
358    2003-10-31  Bernhard Herzog  <[email protected]>
359    
360            * test/test_classification.py (TestClassification.setUp):
361            Subscribe to the CLASS_CHANGED messages
362            (TestClassification.tearDown): New. Destroy the classification
363            properly
364            (TestClassification.test_defaults): Add tests for the default line
365            width and whether no messages were sent yet
366            (TestClassification.test_set_default_properties): Add tests for
367            messages and setting the default line width
368            (TestClassification.test_add_singleton)
369            (TestClassification.test_add_range)
370            (TestClassification.test_multiple_groups): Add tests for messages
371    
372    2003-10-31  Bernhard Herzog  <[email protected]>
373    
374            Some more refactoring in preparation for new tests:
375    
376            * test/test_classification.py (TestClassification.setUp): New.
377            Instantiate the classification here. Update the test methods
378            accordingly.
379            (TestClassification.test_multiple_groups): Make sure that the two
380            singletons matching 1 are considered different.
381    
382    2003-10-31  Bernhard Herzog  <[email protected]>
383    
384            * test/test_classification.py (red, green, blue): New. These
385            constants were used in several cases. Update the relevant methods.
386            (TestClassification.test_defaults)
387            (TestClassification.test_set_default_properties)
388            (TestClassification.test_add_singleton)
389            (TestClassification.test_add_range)
390            (TestClassification.test_multiple_groups)
391            (TestClassification.test_deepcopy): New. These were formerly all
392            part of the single method test.
393            (TestClassification.test_deepcopy): Removed.
394            (TestClassIterator): Removed. The test case is now a method of
395            TestClassification since it tests part of the public interface of
396            Classification
397            (TestClassification.test_iterator): New. Used to be
398            TestClassIterator effectively
399    
400    2003-10-31  Jan-Oliver Wagner <[email protected]>
401    
402            GUIfied the functions of the profiling extension.
403    
404            * /Extensions/profiling/__init__.py: New: Init to make this
405            directory a package.
406    
407            * Extensions/profiling/profiling.py: Moved menu entries to
408            the Extensions menu. Applied _() for strings.
409            (profile_screen_renderer): Catch the detailed printout and present
410            it in a dialog.
411            (time_screen_renderer): Raise a dialog to present the result instead
412            of printing it to stdout.
413    
414    2003-10-31  Bernhard Herzog  <[email protected]>
415    
416            * test/test_classification.py (TestClassGroupProperties)
417            (TestClassGroup, TestClassGroupDefault, TestClassGroupRange)
418            (TestClassGroupSingleton, TestClassIterator, TestClassification):
419            Split TestClassification into several classes, one for each class
420            being tested. TestClassification itself now only tests
421            Classification. This split makes changes to the tests a bit easier
422    
423    2003-10-31  Bernhard Herzog  <[email protected]>
424    
425            * Extensions/profiling/profiling.py: New. Extension to measure
426            Thuban performance
427    
428    2003-10-31  Frank Koormann <[email protected]>
429    
430            Added two items to legend popup menu: Remove Layer and Show Layer Table
431    
432            * Thuban/UI/legend.py (LegendPanel._OnRemoveLayer,
433            LegendPanel._OnShowTable): New event handlers, call the corresponding
434            mainwindow methods.
435            (LegendTree._OnRightClick): Added items to popup menu.
436    
437    2003-10-30  Bernhard Herzog  <[email protected]>
438    
439            * Thuban/UI/dialogs.py (ThubanFrame.__init__): Handle
440            EVT_WINDOW_DESTROY
441            (ThubanFrame.OnDestroy): New. Handler for EVT_WINDOW_DESTROY. Does
442            nothing but is convenient for the derived classes.
443    
444            * Thuban/UI/tableview.py
445            (TableFrame.OnDestroy, LayerTableFrame.OnDestroy): New.
446            Unsubscribe the messages here not in OnClose because that might
447            get called multiple times. Fixes RT #2196
448            (TableFrame.OnClose, LayerTableFrame.OnClose): Removed. Not needed
449            anymore.
450    
451            * README: Update the minimum requirement for wxPython. Since we
452            now use the EVT_WINDOW_DESTROY event, we need at least 2.4.0.4,
453            the version in which that was introduced for all platforms
454    
455    2003-10-30  Frank Koormann <[email protected]>
456    
457            * Thuban/UI/join.py (JoinDialog.OnJoin): Wrapped the major parts of
458            the join process in a ThubanBeginBusyCursor, ThubanEndBusyCursor
459            frame.
460    
461    2003-10-30  Jan-Oliver Wagner <[email protected]>
462    
463            Improved APR import extension, added further EPSG definitions
464            and some cleanup regarding string class.
465    
466            * test/test_proj.py (TestProjection.test_get_projection_units_geo):
467            Added test for alias 'longlat'.
468    
469            * Resources/Projections/epsg-deprecated.proj: New. Contains
470            deprecated EPSG definitions.
471    
472            * Extensions/importAPR/odb.py (ODBBaseObject.TreeInfo): Added
473            the variable names for objects.
474    
475            * Extensions/importAPR/apr.py (APR_BLnSym, APR_BMkSym, APR_BShSym): New.
476            Copied from importAPR and provided with documentation.
477    
478            * Extensions/importAPR/importAPR.py (APR_BLnSym, APR_BMkSym, APR_BShSym):
479            Moved to apr.py.
480            (APR_View): Added object ref 'ITheme'.
481    
482            * Thuban/Lib/fileutil.py, Thuban/UI/proj4dialog.py: Replaced string
483            split function by corresponding use of the string class method.
484    
485            * Thuban/Model/xmlwriter.py: Replaced string replace function by
486            corresponding string method.
487    
488    2003-10-29  Bernhard Herzog  <[email protected]>
489    
490            * Thuban/UI/baserenderer.py
491            (BaseRenderer.draw_shape_layer_incrementally): Speed up the
492            special case of a classification that only has the default group
493    
494    2003-10-27  Bernhard Herzog  <[email protected]>
495    
496            * po/fr.po, po/es.po: Updated translations from Daniel Calvelo
497    
498            * po/de.po: Update.
499    
500            * Thuban/UI/application.py
501            (ThubanApplication.ShowExceptionDialog): Handle translation of the
502            dialog message properly
503    
504    2003-10-27  Bernhard Herzog  <[email protected]>
505    
506            Rework how localization works so that we use wx's translation
507            functions when running Thuban as a normal application but not when
508            we don't need any UI, such as in the test suite. See the comment
509            in Thuban/__init__.py for details
510    
511            * Thuban/__init__.py (_): Add one level of indirection to make the
512            translation handling more flexible and to make it possible to use
513            either wx's translation services or not.
514            (gettext_identity, translation_function_installed)
515            (install_translation_function): New function to help with this
516    
517            * Thuban/UI/__init__.py: Install the wx specific translation
518            function if it's OK to do that
519    
520            * test/support.py (initthuban): Install a dummy translation
521            function so that importing Thuban.UI doesn't install a wx specific
522            one for which would need to import wxPython
523    
524  2003-10-27  Bernhard Herzog  <[email protected]>  2003-10-27  Bernhard Herzog  <[email protected]>
525    
526          * HOWTO-Release: Source archives should be created first and the          * HOWTO-Release: Source archives should be created first and the

Legend:
Removed from v.1870  
changed lines
  Added in v.1973

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26