/[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 1894 by bh, Thu Oct 30 18:17:17 2003 UTC revision 1963 by bh, Wed Nov 19 15:46:33 2003 UTC
# Line 1  Line 1 
1    2003-11-19  Bernhard Herzog  <[email protected]>
2    
3            Remove the old table interface and its test cases
4    
5            * Thuban/Model/table.py (OldTableInterfaceMixin): Removed.
6            (DBFTable, MemoryTable): Do not derive from OldTableInterfaceMixin
7            anymore
8    
9            * Thuban/Model/transientdb.py (TransientTableBase)
10            (AutoTransientTable): Do not derive from OldTableInterfaceMixin
11            anymore
12    
13            * test/test_table.py: Removed since the old interface it tests is
14            gone.
15    
16            * test/runtests.py (main): The old table interface is gone and
17            with it the deprecation warnings so remove the code that turns
18            these warnings into errors
19    
20    2003-11-19  Bernhard Herzog  <[email protected]>
21    
22            * test/test_table.py: Revert to revision 1.5 again. Changing the
23            tests to use the new table interface is completely wrong since the
24            whole purpose of the tests in this module is to test the old
25            interface.
26    
27    2003-11-18  Bernhard Herzog  <[email protected]>
28    
29            * Thuban/Model/postgisdb.py (PostGISConnection.MatchesParameters):
30            New. Test whether the connection matches a set of connection
31            parameters
32    
33            * Thuban/UI/dbdialog.py (DBFrame.conns_changed): Fix doc-string
34            (DBFrame.OnAdd): Use the new MatchesParameters method when looking
35            for existing connections with the same parameters and break out of
36            the loop correctly.
37    
38            * test/test_postgis_db.py (TestBriefDescription)
39            (TestPostGISSimple.test_brief_description): Rename
40            TestBriefDescription to TestPostGISSimple and the test method to
41            test_brief_description so that we can add more test methods.
42            (TestPostGISSimple.test_matches_parameters): New. Test the new
43            MatchesParameters method
44    
45    2003-11-18  Bernhard Herzog  <[email protected]>
46    
47            * Thuban/Lib/connector.py (Publisher): Introduce a new flag,
48            _was_destroyed, to indicate whether an publisher instance has
49            already been destroyed.
50            (Publisher.Unsubscribe): Only disconnect if the publisher has not
51            been destroyed yet.
52            (Publisher.Destroy): Set the _was_destroyed flag to true.
53    
54            * test/test_connector.py
55            (TestPublisher.test_unsubscribe_after_destroy): New. Test that
56            calling Unsubscribe after Destroy doesn't raise an exception
57    
58    2003-11-14  Bernhard Herzog  <[email protected]>
59    
60            * Thuban/UI/identifyview.py (IdentifyView.selected_shape): Fix
61            typo in doc-string
62    
63    2003-11-13  Bernhard Herzog  <[email protected]>
64    
65            Quote table and column names properly for postgis.
66    
67            * Thuban/Model/postgisdb.py (quote_identifier): New. Function to
68            quote an identifier for use in an sql statement
69            (PostGISColumn.__init__): Add the quoted_name attribute
70            (PostGISTable.__init__): New instance variable quoted_tablename
71            (PostGISTable._fetch_table_information): Use the quoted table
72            name. New isntance variable quoted_geo_col with a quoted version
73            of geometry_column
74            (PostGISTable.NumRows, PostGISTable.RowIdToOrdinal)
75            (PostGISTable.RowOrdinalToId): Use the quoted table name
76            (PostGISTable.ReadValue, PostGISTable.ValueRange)
77            (PostGISTable.UniqueValues, PostGISTable.SimpleQuery)
78            (PostGISShapeStore.BoundingBox, PostGISShapeStore.Shape)
79            (PostGISShapeStore.AllShapes, PostGISShapeStore.ShapesInRegion):
80            Use quoted table and column names
81    
82            * test/test_postgis_db.py (TestPostGISSpecialCases)
83            (TestPostGISIgnoredColumns): Rename the class to
84            TestPostGISSpecialCases because that better describes the new
85            cases
86            (TestPostGISSpecialCases.test_unsupported_types)
87            (TestPostGISSpecialCases.test): Rename the method to
88            test_unsupported_types because we need a more descriptive name now
89            that there are more methods
90            (TestPostGISSpecialCases.test_table_name_quoting)
91            (TestPostGISSpecialCases.test_column_name_quoting)
92            (TestPostGISSpecialCases.test_shapestore_name_quoting): New test
93            cases to test quoting of table and column names in PostGISTable
94            and PostGISShapeStore
95    
96            * test/postgissupport.py
97            (skip_if_addgeometrycolumn_does_not_use_quote_ident): New. Skip if
98            AddGeometryColumn desn't support table or column names with sapces
99            or double quotes
100    
101    2003-11-12  Jan-Oliver Wagner <[email protected]>
102    
103            * Extensions/wms/__init__.py: New: Init to make this
104            directory a package.
105    
106            * Extensions/wms/wms.py: New: Provide layers via OGC WMS.
107    
108    2003-11-11  Bernhard Herzog  <[email protected]>
109    
110            * Thuban/Model/resource.py (EPSG_DEPRECATED_PROJ_FILE): New.
111            Constant for the file woth deprecated epsg projections
112            (get_system_proj_file): Update doc-string
113    
114            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Add a space
115            above the EPS widgets, introduce a check box for the deprecated
116            eps projections and a label for the epsg widgets
117            (ProjFrame._OnShowEPSG): Handle the deprecated EPSG projections
118            too
119    
120    2003-11-11  Bernhard Herzog  <[email protected]>
121    
122            Avoid warnings when run under Python 2.3
123    
124            * Thuban/UI/baserenderer.py (BaseRenderer.draw_point_shape)
125            (BaseRenderer.draw_label_layer): Coordinates must be ints.
126    
127            * Thuban/UI/renderer.py (MapRenderer.make_point): Turn this into a
128            real method so that we can convert to int.
129            (MapRenderer.label_font): The font size mist be an int.
130    
131            * Thuban/UI/common.py (Color2wxColour): The color values must be
132            ints. Also, remove the unnecessary asserts.
133    
134            * test/test_load_0_8.py (TestUnicodeStrings.file_contents)
135            (TestUnicodeStrings.test): Python source code should not contain
136            non-ascii characters unless an encoding is specified in the file.
137            Therefore use \x escapes in the string literals for non-ascii
138            characters.
139    
140    2003-11-11  Bernhard Herzog  <[email protected]>
141    
142            * Thuban/Model/resource.py (get_system_proj_file): Add a filename
143            parameter so that this function can be used for all proj files in
144            Resource/Projections
145            (DEFAULT_PROJ_FILE, EPSG_PROJ_FILE): New. Predefined filenames for
146            get_system_proj_file
147    
148            * Thuban/UI/projdialog.py (ProjFrame.__init__): Instead of one
149            ProjFile self.__sysProjFile use a dictionary of system ProjFile
150            objects self._sys_proj_files
151            (ProjFrame.build_dialog): Adapt to the new changes in the
152            ProjectionList constructor. Add a check button to toggle whether
153            EPSG projections are shown
154            (ProjFrame._OnShowEPSG): New. Handler for the epsg check button
155            events.
156            (ProjFrame.load_user_proj, ProjFrame.load_system_proj): Only show
157            the busy cursor if the files have not yet been loaded by the
158            dialog.
159            (ProjFrame.load_system_proj): Add a parameter for the name of the
160            proj file. Maintain the dictionary of system projections
161            self._sys_proj_files
162    
163            * Thuban/UI/projlist.py (ProjectionList): Merge the system_projs,
164            user_projs parameters into one parameter proj_files which is a
165            list of proj files.
166            (ProjectionList._subscribe_proj_files)
167            (ProjectionList._unsubscribe_proj_files): New. Move
168            subscription/unsubscription of projfile messages to separate
169            methods
170            (ProjectionList.Destroy): The unsubscribe is now done in
171            _unsubscribe_proj_files
172            (ProjectionList.update_projections): We now have a list of proj
173            file objects
174            (ProjectionList.SetProjFiles): New method to set a new list of
175            proj file objects
176    
177            * test/test_proj.py (ProjFileReadTests.test_get_system_proj_file):
178            Specify explicitly which system proj file to load.
179    
180    2003-11-11  Bernhard Herzog  <[email protected]>
181    
182            * Thuban/Model/load.py (SessionLoader.Destroy): New. Clear all
183            instance variables to cut cyclic references. The GC would have
184            collected the loader eventually but it can happen that it doesn't
185            run at all until thuban is closed (2.3 but not 2.2 tries a bit
186            harder and forces a collection when the interpreter terminates)
187            (load_session): Call the handler's Destroy method to make sure
188            that it gets garbage collected early. Otherwise it will be
189            collected very late if at all and it holds some references to e.g.
190            shapestores and the session which can lead to leaks (of e.g. the
191            temporary files)
192    
193            * test/test_load.py (TestSingleLayer.test_leak): New. test for the
194            resource leak in load_session
195    
196    2003-11-10  Bernhard Herzog  <[email protected]>
197    
198            * Thuban/UI/baserenderer.py: Add a way to specify how layers in
199            extensions are to be rendered.
200            (_renderer_extensions): New. List with renderer for layers in
201            extensions
202            (add_renderer_extension): New. Add a renderer extension
203            (init_renderer_extensions): New. Init the renderer extensions
204            (BaseRenderer.render_map_incrementally): Search
205            _renderer_extensions for how to draw unknown layer types
206            (BaseRenderer.draw_raster_data): Add format parameter so that
207            formats other than BMP can be drawn
208            (BaseRenderer.draw_raster_layer): Pass an explicit format to
209            draw_raster_data
210    
211            * Thuban/UI/renderer.py (raster_format_map): New. Mapping form the
212            strings of the format parameter of draw_raster_data method to wx
213            constants
214            (MapRenderer.draw_raster_data): Add the format parameter and use
215            raster_format_map to map it to the right wxwindows constant for
216            wxImageFromStream
217    
218            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Add
219            the format parameter and record it
220            (TestBaseRenderer.test_raster_no_projection): check the format
221            paramter of the draw_raster_data method
222            (TestBaseRenderer.test_renderer_extension): New. Test the renderer
223            extension facility
224    
225    2003-11-07  Bernhard Herzog  <[email protected]>
226    
227            Tweak the usage of the sqlite database to make common use cases
228            more responsive. In most cases copying the data to the sqlite
229            database takes so long that using sqlite doesn't have enough
230            advantages.
231    
232            * Thuban/Model/transientdb.py (TransientTableBase.ValueRange): Add
233            comments about performance and query the min and max in separate
234            statements because only that way will indexes be used.
235            (TransientTableBase.UniqueValues): Add some comments about
236            performance.
237            (AutoTransientTable.ValueRange, AutoTransientTable.UniqueValues):
238            Do not copy the data to the transient DB but use the transient
239            copy if it exists. See the new comments for the performance trade
240            offs
241    
242            * test/test_transientdb.py
243            (TestTransientTable.test_auto_transient_table): Make sure that the
244            data is copied to the transient database at some point.
245    
246    2003-11-03  Bernhard Herzog  <[email protected]>
247    
248            * Thuban/Model/data.py (ShapefileStore.ShapesInRegion): Bind some
249            globals to locals so that it's a bit faster
250    
251    2003-11-03  Bernhard Herzog  <[email protected]>
252    
253            * Thuban/UI/baserenderer.py
254            (BaseRenderer.draw_shape_layer_incrementally): Use the ReadValue
255            method. ReadValue is faster than ReadRowAsDict since it only reads
256            one cell especially now that the dbf file objects actually
257            implement it.
258    
259            * Thuban/Model/table.py (DBFTable.ReadValue): Use the new
260            read_attribute method of the dbf objects
261    
262    2003-11-03  Bernhard Herzog  <[email protected]>
263    
264            * Extensions/profiling/profiling.py (popup_dialog_box): New config
265            variable to indicate whether the result should be shown in a
266            dialog box
267            (profile_screen_renderer, time_screen_renderer): Only show a
268            dialog box if popup_dialog_box is true.
269            (profile_screen_renderer): Flush stdout after the printing the
270            first part of the "profiling..." message
271    
272            * Thuban/UI/baserenderer.py
273            (BaseRenderer.draw_shape_layer_incrementally): Cache the pens and
274            brushes for the groups so that they're not created over and over
275            again
276    
277            * Thuban/Model/classification.py (Classification.__getattr__)
278            (Classification._compile_classification)
279            (Classification._clear_compiled_classification): New. Methods to
280            manage a 'compiled' representation of the classification groups
281            which is created on demand
282            (Classification.InsertGroup, Classification.RemoveGroup)
283            (Classification.ReplaceGroup): reset the compiled representation
284            (Classification.FindGroup): Use the compiled representation to
285            find the matching group
286            (ClassGroupRange.GetRangeTuple): New. Return the range as a tuple
287    
288    2003-10-31  Bernhard Herzog  <[email protected]>
289    
290            * Thuban/Model/classification.py (Classification.SetDefaultGroup):
291            Send a CLASS_CHANGED message
292            (Classification.RemoveGroup): Send a CLASS_CHANGED message and do
293            not return the removed group since it wasn't used.
294    
295            * test/test_classification.py
296            (TestClassification.test_set_default_group): New. Test the
297            SetDefaultGroup method
298            (TestClassification.test_insert_group): New. Test the InsertGroup
299            method
300            (TestClassification.test_remove_group): New. Test the RemoveGroup
301            method
302            (TestClassification.test_replace_group): New. Test the
303            ReplaceGroup method
304    
305    2003-10-31  Bernhard Herzog  <[email protected]>
306    
307            * test/test_classification.py (TestClassification.setUp):
308            Subscribe to the CLASS_CHANGED messages
309            (TestClassification.tearDown): New. Destroy the classification
310            properly
311            (TestClassification.test_defaults): Add tests for the default line
312            width and whether no messages were sent yet
313            (TestClassification.test_set_default_properties): Add tests for
314            messages and setting the default line width
315            (TestClassification.test_add_singleton)
316            (TestClassification.test_add_range)
317            (TestClassification.test_multiple_groups): Add tests for messages
318    
319    2003-10-31  Bernhard Herzog  <[email protected]>
320    
321            Some more refactoring in preparation for new tests:
322    
323            * test/test_classification.py (TestClassification.setUp): New.
324            Instantiate the classification here. Update the test methods
325            accordingly.
326            (TestClassification.test_multiple_groups): Make sure that the two
327            singletons matching 1 are considered different.
328    
329    2003-10-31  Bernhard Herzog  <[email protected]>
330    
331            * test/test_classification.py (red, green, blue): New. These
332            constants were used in several cases. Update the relevant methods.
333            (TestClassification.test_defaults)
334            (TestClassification.test_set_default_properties)
335            (TestClassification.test_add_singleton)
336            (TestClassification.test_add_range)
337            (TestClassification.test_multiple_groups)
338            (TestClassification.test_deepcopy): New. These were formerly all
339            part of the single method test.
340            (TestClassification.test_deepcopy): Removed.
341            (TestClassIterator): Removed. The test case is now a method of
342            TestClassification since it tests part of the public interface of
343            Classification
344            (TestClassification.test_iterator): New. Used to be
345            TestClassIterator effectively
346    
347    2003-10-31  Jan-Oliver Wagner <[email protected]>
348    
349            GUIfied the functions of the profiling extension.
350    
351            * /Extensions/profiling/__init__.py: New: Init to make this
352            directory a package.
353    
354            * Extensions/profiling/profiling.py: Moved menu entries to
355            the Extensions menu. Applied _() for strings.
356            (profile_screen_renderer): Catch the detailed printout and present
357            it in a dialog.
358            (time_screen_renderer): Raise a dialog to present the result instead
359            of printing it to stdout.
360    
361    2003-10-31  Bernhard Herzog  <[email protected]>
362    
363            * test/test_classification.py (TestClassGroupProperties)
364            (TestClassGroup, TestClassGroupDefault, TestClassGroupRange)
365            (TestClassGroupSingleton, TestClassIterator, TestClassification):
366            Split TestClassification into several classes, one for each class
367            being tested. TestClassification itself now only tests
368            Classification. This split makes changes to the tests a bit easier
369    
370    2003-10-31  Bernhard Herzog  <[email protected]>
371    
372            * Extensions/profiling/profiling.py: New. Extension to measure
373            Thuban performance
374    
375    2003-10-31  Frank Koormann <[email protected]>
376    
377            Added two items to legend popup menu: Remove Layer and Show Layer Table
378    
379            * Thuban/UI/legend.py (LegendPanel._OnRemoveLayer,
380            LegendPanel._OnShowTable): New event handlers, call the corresponding
381            mainwindow methods.
382            (LegendTree._OnRightClick): Added items to popup menu.
383    
384  2003-10-30  Bernhard Herzog  <[email protected]>  2003-10-30  Bernhard Herzog  <[email protected]>
385    
386          * Thuban/UI/dialogs.py (ThubanFrame.__init__): Handle          * Thuban/UI/dialogs.py (ThubanFrame.__init__): Handle

Legend:
Removed from v.1894  
changed lines
  Added in v.1963

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26