/[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 1258 by bh, Fri Jun 20 12:23:28 2003 UTC revision 1286 by jonathan, Mon Jun 23 10:31:01 2003 UTC
# Line 1  Line 1 
1    2003-06-23  Jonathan Coles   <[email protected]>
2    
3            * Thuban/UI/common.py (ThubanBeginBusyCursor): Call wxSafeYield
4            to make sure that we don't create reentrant possibilities with
5            wxYield.
6    
7            * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxBeginBusyCursor()
8            directly to avoid the wxSafeYield() call which generates an
9            OnPaint event causing infinite recursion. Don't try to catch
10            exception anymore. This was for before there were limits on map
11            scaling.
12    
13    2003-06-23  Bernhard Herzog  <[email protected]>
14    
15            Bug fix for RT #1961:
16    
17            * Thuban/Model/load.py (SessionLoader.start_derivedshapesource):
18            Register DerivedShapestores with the session
19    
20            * Thuban/Model/session.py (Session.Tables): Make sure each table
21            is only listed once.
22    
23            * test/test_load.py (TestJoinedTable.test): Add check_format call.
24            Update file contents to match the one written out.
25    
26    2003-06-20  Bernhard Herzog  <[email protected]>
27    
28            * test/xmlsupport.py (SaxEventLister.startElementNS)
29            (SaxEventLister.endElementNS): Do not include the qname. Python
30            2.2.1 and 2.2.2 and 2.2.3 differ in this regard. In 2.2.1 qname it
31            is (presumably incorrectly) None, whereas it's a string with the
32            element name in the later versions.
33    
34            * test/test_xmlsupport.py (TestEventList.test_even_list_simple)
35            (TestEventList.test_even_list_namespace): Update tests to reflect
36            the new behaviour
37            (TestEventList.test_even_list_id_normalization): Fix doc-string
38    
39    2003-06-20  Jonathan Coles   <[email protected]>
40    
41            * Thuban/Model/layer.py (BaseLayer.HasShapes): New. Overridden
42            by deriving classes to determine if that layer supports shapes.
43            (Layer): Override HasShapes and return true.
44    
45            * Thuban/UI/classgen.py: Use Thuban[Begin|End]BusyCursor()
46            instead of a direct call to wx[Begin|End]CusyCursor().
47            (GenUniquePanel._OnRetrieve): Set busy cursor while retrieving
48            table data.
49    
50            * Thuban/UI/common.py (ThubanBeginBusyCursor, ThubanEndBusyCursor):
51            New. Wrappers around the wxWindows functions that allow us to
52            make additional calls such as wxYield which gives the native
53            system a chance to update the cursor correctly.
54    
55            * Thuban/UI/tableview.py: Use Thuban[Begin|End]BusyCursor()
56            instead of a direct call to wx[Begin|End]CusyCursor().
57    
58            * Thuban/UI/view.py: Use Thuban[Begin|End]BusyCursor()
59            instead of a direct call to wx[Begin|End]CusyCursor().
60            (MapCanvas.find_shape_at): Check if the current search layer
61            support shapes, otherwise go on to the next layer.
62    
63            * test/test_layer.py: Add tests in each type of layer for
64            HasClassification() and HasShapes()
65    
66    2003-06-20  Jonathan Coles   <[email protected]>
67    
68            * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxYield after
69            turning on the busy cursor to allow the system to change the
70            cursor before we begin painting. This fixes a problem that
71            was occuring only under GTK. Fixes RTbug #1840.
72    
73    2003-06-20  Bernhard Herzog  <[email protected]>
74    
75            * Resources/XML/thuban-0.8.dtd: New DTD for the new file format
76            version.
77    
78            * Thuban/Model/save.py (sort_data_stores): New. Make topological
79            sort of the data sources so they can be written with sources that
80            data sources that depend on other data sources come after the
81            sources they depend on.
82            (SessionSaver.__init__): Add idmap instance variable to map from
83            objects to the ids used in the file.
84            (SessionSaver.get_id, SessionSaver.define_id)
85            (SessionSaver.has_id): New. Methods to manage the idmap
86            (SessionSaver.write): Use thuban-0.8.dtd
87            (SessionSaver.write_session): Add a namespace on the session and
88            write out the data sources before the maps.
89            (SessionSaver.write_data_containers): New. Write the data
90            containers.
91            (SessionSaver.write_layer): Layer elements now refer to a
92            shapestore and don't contain filenames anymore.
93    
94            * Thuban/Model/load.py (LoadError): Exception class to raise when
95            errors in the files are discovered
96            (SessionLoader.__init__): Define dispatchers for elements with a
97            thuban-0.8 namespace too.
98            (SessionLoader.check_attrs): New helper method to check and
99            convert attributes
100            (AttrDesc): New. Helper class for SessionLoader.check_attrs
101            (SessionLoader.start_fileshapesource)
102            (SessionLoader.start_derivedshapesource)
103            (SessionLoader.start_filetable, SessionLoader.start_jointable):
104            Handlers for the new elements in the new fileformat
105            (SessionLoader.start_layer): Handle the shapestore attribute in
106            addition to filename.
107            (SessionLoader.start_table, SessionLoader.end_table): Removed.
108            They were never used in the old formats and aren't needed for the
109            new.
110    
111            * Thuban/Model/session.py (Session.DataContainers): New method to
112            return all "data containers", i.e. shapestores and tables
113    
114            * test/xmlsupport.py (SaxEventLister.__init__)
115            (SaxEventLister.startElementNS, sax_eventlist): Add support to
116            normalize IDs.
117    
118            * test/test_xmlsupport.py
119            (TestEventList.test_even_list_id_normalization): New test case for
120            id normalization
121    
122            * test/test_load.py (LoadSessionTest.check_format): Use ID
123            normalization
124            (LoadSessionTest.thubanids, LoadSessionTest.thubanidrefs): New
125            class atrributes used for ID normalization
126            (TestSingleLayer, TestLayerVisibility, TestLabels.test)
127            (TestLayerProjection.test, TestRasterLayer.test): Adapt to new
128            file format
129            (TestJoinedTable): New test for loading sessions with joined
130            tables.
131            (TestLoadError): New. Test whether missing required attributes
132            cause a LoadError.
133    
134            * test/test_save.py (SaveSessionTest.thubanids)
135            (SaveSessionTest.thubanidrefs): New class attributes for ID
136            normalization in .thuban files.
137            (SaveSessionTest.compare_xml): Use id-normalization.
138            (SaveSessionTest.testEmptySession)
139            (SaveSessionTest.testLayerProjection)
140            (SaveSessionTest.testRasterLayer)
141            (SaveSessionTest.testClassifiedLayer): Adapt to new file format.
142            (SaveSessionTest.testLayerProjection): The filename used was the
143            same as for testSingleLayer. Use a different one.
144            (SaveSessionTest.test_dbf_table)
145            (SaveSessionTest.test_joined_table): New test cases for saving the
146            new data sources structures.
147            (TestStoreSort, MockDataStore): Classes to test the sorting of the
148            data stores for writing.
149    
150            * test/runtests.py: Add CVS keywords
151    
152    2003-06-20  Jonathan Coles   <[email protected]>
153    
154            * test/test_session.py
155            (UnreferencedTablesTests.test_unreferenced_tables_with_joins):
156            Use the cultural_landmark-point.dbf file for the store so that
157            the table rows and shape count match.
158    
159    2003-06-20  Jonathan Coles   <[email protected]>
160    
161            * Thuban/Model/data.py (DerivedShapeStore.__init__): Raise
162            an exception if the number of shapes is different from the
163            number of rows in the table. Address RTbug #1933.
164    
165            * test/test_layer.py (TestLayer.test_derived_store): Add
166            a test for the new exception in DerivedShapeStore.__init__.
167    
168            * test/support.py (FloatTestCase): Removed since there is
169            already FloatComparisonMixin. Fixes RTbug #1954.
170            (FloatComparisonMixin.assertFloatEqual): Include test for
171            infinity that was part of FloatTestCase.
172    
173            * test/test_range.py (RangeTest): Inherit from
174            support.FloatComparisonMixin now that we don't have
175            support.FloatTestCase.
176    
177    2003-06-20  Bernhard Herzog  <[email protected]>
178    
179            * test/test_save.py (SaxEventLister, sax_eventlist): Removed. Use
180            the implementation in xmlsupport instead.
181            (SaveSessionTest.compare_xml): sax_eventlist is now in xmlsupport
182    
183            * test/test_proj.py: Import sax_eventlist from xmlsupport instead
184            of test_save
185    
186  2003-06-20  Bernhard Herzog  <[email protected]>  2003-06-20  Bernhard Herzog  <[email protected]>
187    
188          * test/test_load.py (LoadSessionTest.check_format): New helper          * test/test_load.py (LoadSessionTest.check_format): New helper
# Line 24  Line 209 
209    
210  2003-06-20  Jonathan Coles   <[email protected]>  2003-06-20  Jonathan Coles   <[email protected]>
211    
212            This is mainly about fixing RTbug #1949.
213    
214          * Thuban/Model/classification.py: Remove "from __future__"          * Thuban/Model/classification.py: Remove "from __future__"
215          import statement since python 2.2 is the earliest supported          import statement since python 2.2 is the earliest supported
216          version.          version.

Legend:
Removed from v.1258  
changed lines
  Added in v.1286

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26