/[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 1267 by jonathan, Fri Jun 20 14:36:46 2003 UTC revision 1420 by bh, Tue Jul 15 09:29:39 2003 UTC
# Line 1  Line 1 
1    2003-07-15  Bernhard Herzog  <bh@intevation.de>
2    
3            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Rework the
4            draw_func handling a bit to remove one layer of indirection. This
5            makes the renderer about 10% faster in the non-classifying case
6            and the code a bit cleaner
7            (MapRenderer.draw_point_shape): Add the pen and brush parameters
8            and set them in the dc. Now the draw_point_shape method and
9            wxproj's draw_polygon_shape function have basically the same
10            signature so that both can be directly used as draw_func
11    
12    2003-07-15  Bernhard Herzog  <bh@intevation.de>
13    
14            * Thuban/Model/save.py (SessionSaver.write_classification): Encode
15            string values (in addition to the labels) as UTF 8
16    
17            * Thuban/Model/load.py (SessionLoader.start_clpoint): Decode the
18            values if the field type is string
19    
20            * test/test_save.py (SaveSessionTest.testClassifiedLayer): Test
21            saving a session with non-ascii string classification values.
22    
23            * test/test_load.py (TestClassification.file_contents)
24            (TestClassification.test): Check for non-ascii values in string
25            classifications
26    
27    2003-07-14  Jonathan Coles   <jonathan@intevation.de>
28    
29            * test/test_view.py: New. Tests for ViewPort.
30    
31    2003-07-14  Frank Koormann   <frank@intevation.de>
32    
33            * Thuban/Model/load.py (SessionLoader.start_map): Encode map
34            title to latin1.  Fixes https://intevation.de/rt/webrt?serial_num=2013
35    
36            * test/test_load_0_8.py (TestUnicodeStrings): New, test load of
37            unicode strings from session file: session title, map title and
38            projection name.
39            
40    2003-07-10  Jonathan Coles   <jonathan@intevation.de>
41    
42            * Thuban/UI/viewport.py (Tool.MouseUp): Should have called
43            drag_stop, not drag_move when the mouse is released.
44    
45    2003-07-10  Jonathan Coles   <jonathan@intevation.de>
46    
47            The most important part of this is the seperation of view.py into
48            two pieces. viewport.py now has a class called ViewPort which
49            contains all the non-wx parts of view.py and can therefore be
50            tested. view.py contains only the wx-specific parts and is fairly
51            simple.
52    
53            * Thuban/UI/view.py: Stripped out all non-wx functionality. Fixes
54            RTTbug #1992.
55            * Thuban/UI/viewport.py: New. Contains non-wx view functionality.
56            RTTbug #1992.
57    
58            * Thuban/Model/classgen.py (generate_singletons,
59            generate_uniform_distribution, generate_quantiles):
60            Added 'fixes' parameter so that property attributes can
61            be held constant over the generated classification groups.
62            (CustomRamp.GetProperties): Remove unused variables.
63    
64            * Thuban/Model/map.py (Map.SetProjection): Send the old
65            projection as an argument to listeners of the MAP_PROJECTION_CHANGED
66            event.
67    
68            * Thuban/Model/table.py (table_to_dbf, table_to_csv): Added 'records'
69            parameter which is a list of records that restricts which
70            records are saved. Fixes RTbug #1997.
71    
72            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
73            Port exception dialog from GREAT-ER. Fixes RTbug #1993.
74    
75            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Add controls
76            to allow the user to fix line color/width on generated groups.
77            (ClassGenDialog.OnOK): Use new 'fixes' parameter of the generate_*
78            functions to optionally fix group properties.
79    
80            * Thuban/UI/main.py (main): Set exception hook to the
81            ShowExceptionDialog. Fixes RTbug #1993.
82    
83            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): Raise
84            the table window when it is selectd to be shown.
85    
86            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Add an
87            Export Selection button and move the export buttons underneath
88            the table.
89            (QueryTableFrame.UpdateStatusText): Added event argument so
90            that it can respond to grid selection events. The status text
91            is now updated even when the table is not associated with a
92            layer as was previously assumed.
93            (QueryTableFrame.OnGridSelectRange, OnGridSelectCell): Removed.
94            UpdateStatusText responds to these events.
95            (QueryTableFrame.OnSaveAs): Renamed to doExport.
96            (QueryTableFrame.doExport): Helper function that saves the
97            entire table, or selected rows, to a file.
98            (QueryTableFrame.OnExport, QueryTableFrame.OnExportSel): New.
99            Respond to export button events and call doExport.
100    
101            * extensions/thuban/gdalwarp.cpp (ProjectRasterFile): Make sure
102            the function doesn't return NULL without first setting a Python
103            Error.
104    
105            * test/runtests.py (main): Only print "Unknown option" for
106            unsupported options.
107    
108            * test/support.py (FloatComparisonMixin.assertFloatEqual): Take
109            optional epsilon argument to specify floating point accuracy.
110            (FloatComparisonMixin.assertFloatSeqEqual): Call assertFloatEqual
111            for each item test.
112    
113            * test/test_csv_table.py (TestCSVTable.test_table_to_cvs): Add
114            tests for saving selected records.
115    
116            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add
117            tests for saving selected records.
118    
119            * test/test_map.py (TestMapWithContents.test_set_projection):
120            MAP_PROJECTION_CHANGED events send the old projection.
121    
122            * test/test_session.py
123            (TestSessionWithContent.test_forward_map_projection):
124            MAP_PROJECTION_CHANGED events send the old projection.
125    
126            * test/test_table.py (TableTest): Update tests to use non-deprecated
127            functions.
128    
129    2003-07-08  Bernhard Herzog  <bh@intevation.de>
130    
131            * Thuban/Model/transientdb.py (TransientTableBase.Width): The type
132            constants in the column objects are the standard ones defined in
133            the table module.
134    
135            * test/test_transientdb.py
136            (TestTransientTable.test_transienttable_to_dbf): New. Test whether
137            exporting transient tables as DBF works. This should catch the bug
138            just fixed in TransientTableBase.Width.
139    
140    2003-07-08  Bernhard Herzog  <bh@intevation.de>
141    
142            * Thuban/Model/classgen.py (CustomRamp.GetProperties): Compute the
143            interpolated colors correctly.
144    
145            * test/test_classgen.py (TestCustomRamp.test_color_interpolation):
146            New. Test case for the fix in classgen.py
147    
148    2003-07-08  Bernhard Herzog  <bh@intevation.de>
149    
150            * test/runtests.py (main): Make the default output less verbose
151            and add a verbosity option (-v) to get the old output
152    
153    2003-07-08  Bernhard Herzog  <bh@intevation.de>
154    
155            * Resources/XML/thuban-0.9.dtd: New. This will become the DTD for
156            0.9.
157    
158            * Thuban/Model/transientdb.py (TransientJoinedTable.JoinType):
159            New. Return the join type
160    
161            * Thuban/Model/save.py (SessionSaver.write_session): Use new 0.9
162            DTD
163            (SessionSaver.write_data_containers): Save the join type for
164            joined tables
165    
166            * Thuban/Model/load.py (SessionLoader.__init__): Add the new 0.9
167            namespace
168            (SessionLoader.start_jointable): Handle the jointype attribute
169    
170            * test/test_load_0_8.py: New. Effectively a copy of test_load.py
171            as of Thuban 0.8. These are now tests to determine whether Thuban
172            can still read files generated by Thuban 0.8
173    
174            * test/test_load.py (LoadSessionTest.dtd)
175            (TestSingleLayer.file_contents)
176            (TestLayerVisibility.file_contents, TestLabels.file_contents)
177            (TestLayerProjection.file_contents)
178            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
179            (TestJoinedTable.file_contents)
180            (TestLoadError.file_contents): Update for new DTD
181            (TestJoinedTable.file_contents, TestJoinedTable.setUp): Add test
182            for new join type attribute
183    
184            * test/test_save.py (SaveSessionTest.dtd)
185            (SaveSessionTest.testEmptySession)
186            (SaveSessionTest.testSingleLayer)
187            (SaveSessionTest.testLayerProjection)
188            (SaveSessionTest.testRasterLayer)
189            (SaveSessionTest.testClassifiedLayer)
190            (SaveSessionTest.test_dbf_table)
191            (SaveSessionTest.test_joined_table): Update for new DTD
192            (SaveSessionTest.test_joined_table): Add test for new join type
193            attribute
194    
195    2003-07-04  Bernhard Herzog  <bh@intevation.de>
196    
197            * Thuban/Model/table.py (_find_dbf_column_names): New. Helper
198            function for table_to_dbf
199            (table_to_dbf): Deal with names longer than the 10 character limit
200    
201            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add
202            doc-string
203            (TestTableToDBF.test_table_to_dbf_long_col_names): New test for
204            long column names
205    
206    2003-07-03  Bernhard Herzog  <bh@intevation.de>
207    
208            * Doc/manual/thuban-manual.xml: Fix the CVS Revision Tag syntax
209    
210    2003-07-03  Bernhard Herzog  <bh@intevation.de>
211    
212            * Doc/manual/thuban-manual.xml, Doc/manual/README: New. Skeleton
213            for the Thuban manual and README with some basic information about
214            the manual
215    
216    2003-07-03  Bernhard Herzog  <bh@intevation.de>
217    
218            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
219            Update doc-string
220            (TransientJoinedTable.create): Do not modify the column objects of
221            the input tables in place and copy all columns of the input tables
222            into the joined table after all.
223    
224            * test/test_transientdb.py
225            (TestTransientTable.test_transient_joined_table_same_column_name):
226            Update to reflect the new behavior
227            (TestTransientTable.test_transient_joined_table_with_equal_column_names):
228            Update to reflect the new behavior
229            (TestTransientTable.test_transient_joined_table_name_collisions_dont_modify_in_place):
230            New test case for a bug which modified the column objects in place
231    
232    2003-07-02  Jonathan Coles   <jonathan@intevation.de>
233    
234            * Thuban/Model/classgen.py (generate_singletons,
235            generate_uniform_distribution, generate_quantiles,
236            GenQuantiles0): Make sure maxValue isn't less than
237            one, otherwise we could divide by zero.
238    
239            * test/test_classgen.py (ClassGenTest.doClassRangeTest,
240            ClassGenTest.doClassSingleTest): Call doBoundsTest to
241            check the end classification groups against the
242            proper property values.
243            (ClassGenTest.doBoundsTest): New. Checks the first and
244            last classification groups to make sure their properties
245            are the correct upper and lower bounds for a color ramp.
246    
247    2003-07-02  Jonathan Coles   <jonathan@intevation.de>
248    
249            * Thuban/Model/classgen.py (generate_singletons,
250            generate_uniform_distribution, generate_quantiles,
251            GenQuantiles0): The denominator was one to high when
252            calculating the index for the ramp causing the index
253            to never to reach one.
254    
255    2003-07-02  Jonathan Coles   <jonathan@intevation.de>
256    
257            Changed the singature of ClassGroupRange.__init__ and
258            ClassGroupRange.SetRange() so that the min/max values are
259            passed as a tuple. This makes a better calling scheme for
260            when a Range object is passed instead.
261    
262            * Thuban/Model/classgen.py: Fixed parameters to
263            ClassGroupRange constructor.
264    
265            * Thuban/Model/classification.py (ClassGroupRange.__init__):
266            Consolidate the min/max parameters into a single _range which
267            can either be a tuple or a Range object.
268            (ClassGroupRange.SetRange): Consolidate the min/max parameters
269            into a single _range which can either be a tuple or a Range object.
270    
271            * Thuban/Model/load.py (SessionLoader.start_clrange): Fix
272            call to ClassGroupRange constructor to use a tuple.
273    
274            * Thuban/Model/layer.py (Layer.SetClassification): Switch
275            the classification instance variable to the new class
276            before calling _set_layer otherwise subscribers to a
277            LAYER_CHANGED event will not see any difference.
278    
279            * test/test_classification.py: Fix tests of ClassGroupRange
280            so that they use the new signature.
281    
282            * test/test_load.py: Fix use of ClassGroupRange so that it
283            uses the new signature.
284    
285            * test/test_load_0_2.py: Fix use of ClassGroupRange so that it
286            uses the new signature.
287    
288            * test/test_save.py: Fix use of ClassGroupRange so that it
289            uses the new signature.
290    
291    
292    2003-07-01  Jonathan Coles   <jonathan@intevation.de>
293    
294            * Thuban/Model/classgen.py: Fixes RTbug #1972, 1971.
295            Import used objects/class from color.
296            (generate_singletons): We don't
297            need the numGroups parameter anymore because we are using
298            the new ramps with GetProperties().
299            (generate_uniform_distribution): Use new ramp method
300            GetProperties().
301            (generate_quantiles, GenQuantiles0): Use new ramp method
302            GetProperties().
303            (CustomRamp.SetNumGroups): Removed. The ramps now map
304            a value from 0 to 1 to class properties so the number
305            of groups is not needed ahead of time.
306            (CustomRamp.next): Removed. CustomRamp does not support
307            interation anymore.
308            (CustomRamp.GetProperties): Returns a ClassGroupProperties
309            object based on the index value from 0 to 1 that is
310            passed to it.
311            (GreyRamp, RedRamp, GreenRamp, BlueRamp, GreenToRedRamp):
312            Made into instances of Monochromatic class instread of
313            deriving from it.
314            (HotToCold.SetNumGroups): Removed. See CustomRamp.
315            (HotToCold.next): Removed. See CustomRamp.
316    
317            * Thuban/Model/classification.py: Fixes RTbug #1973, 1971.
318            (Classification.SetField, Classification.SetFieldType):
319            Replaced with SetFieldInfo.
320            (Classification.SetFieldInfo): New. Does a better job of
321            what SetField and SetFieldType used to do by combining
322            their function since they should really always be done
323            at the same time.
324            (Classification.SetLayer): Renamed to _set_layer.
325            (Classification._set_layer): Should only be called from
326            Layer's SetClassification. This does not cause a recursive
327            call as SetLayer did because we know that Layer knows about
328            the classification.
329    
330            * Thuban/Model/color.py: Fixes RTbug #1971.
331            (_Transparent): Renamed from Transparent so it doesn't
332            conflict with the module variable.
333            (Transparent, Black): Renamed from Color.Transparent,
334            Color.Black so they are not class variables.
335    
336            * Thuban/Model/layer.py: Fixes RTbug #1971, 1973.
337            (Layer.Destroy): We don't need to call SetClassification
338            anymore to clear out the back reference in the classifcation
339            to the layer. It's better to set it to None using _set_layer,
340            and we won't be creating another clas object too.
341            (Layer.SetClassification): Classification._set_layer is not
342            recursive so remove all the locking variables. Also clean
343            up the code so that it remains unchanged if something fails.
344    
345            * Thuban/Model/load.py: Fixes RTbug #1971.
346            (SessionLoader.start_classification): Call
347            Classification.SetFieldInfo().
348    
349            * Thuban/Model/save.py: Removed import of Color which wasn't
350            being used.
351    
352            * Thuban/UI/classgen.py: Fixes RTbug #1972.
353            (ClassGenDialog.__init__): Color ramps are now instances
354            already so we don't need to create any new objects.
355            (ClassGenDialog.OnOK): Check for numGroups is no longer
356            necessary because we never use it.
357    
358            * Thuban/UI/classifier.py: Fixes RTbug #1971.
359            (Classifier.__BuildClassification, Classifier.__SetGridTable):
360            Call Classification.SetFieldInfo() instead of SetFieldType.
361    
362            * Thuban/UI/renderer.py: Fixes RTbug #1971.
363    
364            * Thuban/UI/view.py: Fixes RTbug #1974, 1971.
365            (MapCanvas.__init__): Subscribe to the idle time event. Set
366            background color to white.
367            (MapCanvas.OnPaint): Set a flag indicating that we should
368            render the map during idle time. If we already have a bitmap
369            just draw it now.
370            (MapCanvas.OnIdle): New. Render the map only during idle time.
371            This also fixes a problem with the busy cursor under gtk.
372    
373            * test/test_classgen.py (ClassGenTest.test_generate_singletons):
374            Fix calls to generate_singletons because the signature changed.
375    
376            * test/test_classification.py: Fix color references and
377            change calls to Classification.[SetField|SetFieldType] to
378            SetFieldInfo.
379    
380            * test/test_load.py: Fix color references.
381    
382            * test/test_load_0_2.py: Fix color references.
383    
384            * test/test_save.py (SaveSessionTest.testClassifiedLayer):
385            Change calls to Classification.[SetField|SetFieldType] to
386            SetFieldInfo.
387    
388    2003-07-01  Frank Koormann   <frank.koormann@intevation.de>
389    
390            MERGE from the greater-ms3 branch.
391    
392            * test/test_transientdb.py
393            (TestTransientTable.test_transient_joined_table_with_equal_column_names):
394            New. Test join of two tables with partly equal column names.
395    
396            * Thuban/Model/transientdb.py (TransientJoinedTable.create):
397            If duplicates in left and right tables column names are found,
398            append '_' (underscores) to the name until it is unique.
399            Create always new internal names for the resulting table and reference
400            columns in the join statement with <table>.<column>
401    
402    2003-07-01  Bernhard Herzog  <bh@intevation.de>
403    
404            * test/test_transientdb.py
405            (TestTransientTable.test_transient_joined_table_same_column_name):
406            New. Test whether joining on columns with the same names in both
407            tables works.
408            
409            * Thuban/Model/transientdb.py (TransientJoinedTable.create): Make
410            sure to use the right internal names even when joining on field
411            with the same names in both tables. Also, detect duplicate names
412            in the joined table correctly.
413    
414    2003-07-01  Frank Koormann   <frank@intevation.de>
415    
416            * Thuban/UI/renderer.py (ExportRenderer.render_legend):
417            Reverse List of layers to render in same order as in desktop legend.
418    
419    2003-06-30  Jonathan Coles   <jonathan@intevation.de>
420    
421            * Thuban/version.py (make_tuple): Takes a version string
422            and splits it into a tuple of at most three integers.
423            Used make_tuple() to make tuple versions of the version
424            numbers.
425    
426            * Thuban/UI/about.py: Add Thuban email addresses.
427    
428    2003-06-30  Jonathan Coles   <jonathan@intevation.de>
429    
430            * Thuban/version.py: SQLite/PySQLite version dependencies
431            were too high.
432    
433    2003-06-30  Jonathan Coles   <jonathan@intevation.de>
434    
435            * Thuban/version.py: Update version to 0.8.1
436            
437            * MANIFEST.in: Added Projections so that default.proj is
438            included.
439    
440    2003-06-26  Jonathan Coles   <jonathan@intevation.de>
441    
442            New About box with lots more information including library
443            versions and credits. More/better version checking before
444            Thuban starts.
445    
446            * Thuban/UI/about.py: New. New About box that displays
447            library version information and credits.
448    
449            * Thuban/version.py: Added new 'versions' dictionary which
450            contains the verions of various libraries which are checked
451            when the module loads.
452            (verify_versions): Check all version numbers and returns
453            a list of errors.
454    
455            * Thuban/UI/classifier.py (Classifier.__EnableButtons):
456            Reset the status of the buttons as the situation warrants,
457            but in a better more reliable way by not relying on the
458            current status to determine what needs to change.
459    
460            * Thuban/UI/main.py (wxCHECK_VERSION): Removed. Not needed.
461            (verify_versions): Remove most of the code since it is
462            now in Thuban.version.verify_versions.o
463    
464            * Thuban/UI/mainwindow.py (MainWindow.About): Call new
465            About box in Thuban.UI.about.
466    
467            * extensions/thuban/gdalwarp.cpp (get_gdal_version): New.
468            Returns the version of gdal library being used as a string.
469    
470            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
471            Removed.
472            (get_proj_version): Return the version of PROJ that the file
473            was compiled with.
474            (get_gtk_version): Return th version of GTK that the file
475            was compiled with.
476    
477    2003-06-25  Jonathan Coles   <jonathan@intevation.de>
478    
479            * Thuban/UI/classifier.py (Classifier.EditSymbol): The parent
480            of the SelectPropertiesDialog should be self so the window
481            appears on top.
482            (ClassGroupPropertiesCtrl.DoEdit): The parent
483            of the SelectPropertiesDialog should be self so the window
484            appears on top.
485    
486            * Thuban/UI/resource.py: Cleaned up how we determine file
487            extensions.
488            (GetImageResource): Return an wxImage from our Resources.
489    
490    2003-06-24  Jonathan Coles   <jonathan@intevation.de>
491    
492            * Thuban/UI/renderer.py (ExportRenderer.render_legend):
493            Check that a layer has a classification before trying
494            to get it. Raster layers don't have classifications.
495    
496    2003-06-23  Jonathan Coles   <jonathan@intevation.de>
497            
498            * setup.py: Add Resources/XML to resource list.
499        
500    2003-06-23  Jonathan Coles   <jonathan@intevation.de>
501    
502            * setup.cfg: Fix copyright dates
503        
504    2003-06-23  Jonathan Coles   <jonathan@intevation.de>
505    
506            * MANIFEST.in: Update with Resources/XML
507    
508            * setup.py: Don't include Locale resources yet as we don't
509            have any and it causes problems building the distribution
510            for Windows. Update version to 0.8.0.
511    
512            * Doc/thuban.dtd: Removed since it is now in Resources/XML.
513    
514            * Thuban/UI/mainwindow.py: Add blank line at the end because
515            file was not being read correctly building the Windows
516            distribution.
517    
518    2003-06-23  Jonathan Coles   <jonathan@intevation.de>
519    
520            * Thuban/UI/mainwindow.py (MainWindow.About): Fix text.
521    
522            * Thuban/version.py: Temporarily update longversion for
523            the 0.8 release so that it doesn't have the cvs revision.
524    
525    2003-06-23  Jonathan Coles   <jonathan@intevation.de>
526    
527            * Thuban/UI/common.py (ThubanBeginBusyCursor): Call wxSafeYield
528            to make sure that we don't create reentrant possibilities with
529            wxYield.
530    
531            * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxBeginBusyCursor()
532            directly to avoid the wxSafeYield() call which generates an
533            OnPaint event causing infinite recursion. Don't try to catch
534            exception anymore. This was for before there were limits on map
535            scaling.
536    
537    2003-06-23  Bernhard Herzog  <bh@intevation.de>
538    
539            Bug fix for RT #1961:
540    
541            * Thuban/Model/load.py (SessionLoader.start_derivedshapesource):
542            Register DerivedShapestores with the session
543    
544            * Thuban/Model/session.py (Session.Tables): Make sure each table
545            is only listed once.
546    
547            * test/test_load.py (TestJoinedTable.test): Add check_format call.
548            Update file contents to match the one written out.
549    
550    2003-06-20  Bernhard Herzog  <bh@intevation.de>
551    
552            * test/xmlsupport.py (SaxEventLister.startElementNS)
553            (SaxEventLister.endElementNS): Do not include the qname. Python
554            2.2.1 and 2.2.2 and 2.2.3 differ in this regard. In 2.2.1 qname it
555            is (presumably incorrectly) None, whereas it's a string with the
556            element name in the later versions.
557    
558            * test/test_xmlsupport.py (TestEventList.test_even_list_simple)
559            (TestEventList.test_even_list_namespace): Update tests to reflect
560            the new behaviour
561            (TestEventList.test_even_list_id_normalization): Fix doc-string
562    
563    2003-06-20  Jonathan Coles   <jonathan@intevation.de>
564    
565            * Thuban/Model/layer.py (BaseLayer.HasShapes): New. Overridden
566            by deriving classes to determine if that layer supports shapes.
567            (Layer): Override HasShapes and return true.
568    
569            * Thuban/UI/classgen.py: Use Thuban[Begin|End]BusyCursor()
570            instead of a direct call to wx[Begin|End]CusyCursor().
571            (GenUniquePanel._OnRetrieve): Set busy cursor while retrieving
572            table data.
573    
574            * Thuban/UI/common.py (ThubanBeginBusyCursor, ThubanEndBusyCursor):
575            New. Wrappers around the wxWindows functions that allow us to
576            make additional calls such as wxYield which gives the native
577            system a chance to update the cursor correctly.
578    
579            * Thuban/UI/tableview.py: Use Thuban[Begin|End]BusyCursor()
580            instead of a direct call to wx[Begin|End]CusyCursor().
581    
582            * Thuban/UI/view.py: Use Thuban[Begin|End]BusyCursor()
583            instead of a direct call to wx[Begin|End]CusyCursor().
584            (MapCanvas.find_shape_at): Check if the current search layer
585            support shapes, otherwise go on to the next layer.
586    
587            * test/test_layer.py: Add tests in each type of layer for
588            HasClassification() and HasShapes()
589    
590    2003-06-20  Jonathan Coles   <jonathan@intevation.de>
591    
592            * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxYield after
593            turning on the busy cursor to allow the system to change the
594            cursor before we begin painting. This fixes a problem that
595            was occuring only under GTK. Fixes RTbug #1840.
596    
597    2003-06-20  Bernhard Herzog  <bh@intevation.de>
598    
599            * Resources/XML/thuban-0.8.dtd: New DTD for the new file format
600            version.
601    
602            * Thuban/Model/save.py (sort_data_stores): New. Make topological
603            sort of the data sources so they can be written with sources that
604            data sources that depend on other data sources come after the
605            sources they depend on.
606            (SessionSaver.__init__): Add idmap instance variable to map from
607            objects to the ids used in the file.
608            (SessionSaver.get_id, SessionSaver.define_id)
609            (SessionSaver.has_id): New. Methods to manage the idmap
610            (SessionSaver.write): Use thuban-0.8.dtd
611            (SessionSaver.write_session): Add a namespace on the session and
612            write out the data sources before the maps.
613            (SessionSaver.write_data_containers): New. Write the data
614            containers.
615            (SessionSaver.write_layer): Layer elements now refer to a
616            shapestore and don't contain filenames anymore.
617    
618            * Thuban/Model/load.py (LoadError): Exception class to raise when
619            errors in the files are discovered
620            (SessionLoader.__init__): Define dispatchers for elements with a
621            thuban-0.8 namespace too.
622            (SessionLoader.check_attrs): New helper method to check and
623            convert attributes
624            (AttrDesc): New. Helper class for SessionLoader.check_attrs
625            (SessionLoader.start_fileshapesource)
626            (SessionLoader.start_derivedshapesource)
627            (SessionLoader.start_filetable, SessionLoader.start_jointable):
628            Handlers for the new elements in the new fileformat
629            (SessionLoader.start_layer): Handle the shapestore attribute in
630            addition to filename.
631            (SessionLoader.start_table, SessionLoader.end_table): Removed.
632            They were never used in the old formats and aren't needed for the
633            new.
634    
635            * Thuban/Model/session.py (Session.DataContainers): New method to
636            return all "data containers", i.e. shapestores and tables
637    
638            * test/xmlsupport.py (SaxEventLister.__init__)
639            (SaxEventLister.startElementNS, sax_eventlist): Add support to
640            normalize IDs.
641    
642            * test/test_xmlsupport.py
643            (TestEventList.test_even_list_id_normalization): New test case for
644            id normalization
645    
646            * test/test_load.py (LoadSessionTest.check_format): Use ID
647            normalization
648            (LoadSessionTest.thubanids, LoadSessionTest.thubanidrefs): New
649            class atrributes used for ID normalization
650            (TestSingleLayer, TestLayerVisibility, TestLabels.test)
651            (TestLayerProjection.test, TestRasterLayer.test): Adapt to new
652            file format
653            (TestJoinedTable): New test for loading sessions with joined
654            tables.
655            (TestLoadError): New. Test whether missing required attributes
656            cause a LoadError.
657    
658            * test/test_save.py (SaveSessionTest.thubanids)
659            (SaveSessionTest.thubanidrefs): New class attributes for ID
660            normalization in .thuban files.
661            (SaveSessionTest.compare_xml): Use id-normalization.
662            (SaveSessionTest.testEmptySession)
663            (SaveSessionTest.testLayerProjection)
664            (SaveSessionTest.testRasterLayer)
665            (SaveSessionTest.testClassifiedLayer): Adapt to new file format.
666            (SaveSessionTest.testLayerProjection): The filename used was the
667            same as for testSingleLayer. Use a different one.
668            (SaveSessionTest.test_dbf_table)
669            (SaveSessionTest.test_joined_table): New test cases for saving the
670            new data sources structures.
671            (TestStoreSort, MockDataStore): Classes to test the sorting of the
672            data stores for writing.
673    
674            * test/runtests.py: Add CVS keywords
675    
676  2003-06-20  Jonathan Coles   <jonathan@intevation.de>  2003-06-20  Jonathan Coles   <jonathan@intevation.de>
677    
678          * test/test_session.py          * test/test_session.py

Legend:
Removed from v.1267  
changed lines
  Added in v.1420

root@scm.wald.intevation.org
ViewVC Help
Powered by ViewVC 1.1.26