/[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 1141 by jan, Fri Jun 6 11:19:25 2003 UTC revision 1191 by jonathan, Thu Jun 12 17:01:45 2003 UTC
# Line 1  Line 1 
1    2003-06-12  Jonathan Coles   <[email protected]>
2    
3            * Thuban/Lib/fileutil.py: As is done under Windows, create the
4            user directory if it doesn't exist on a posix system.
5    
6            * Thuban/Model/resource.py (get_user_proj_files): Moved the
7            called to get_application_dir here, so that the directory
8            will only be called if this method is invoked.
9    
10            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Clear
11            the projfilepath if no projection is selected.
12    
13    2003-06-12  Jonathan Coles   <[email protected]>
14    
15            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Don't draw
16            the scalebar if the current map has no projection set.
17    
18            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Set the
19            projfilepath label to just the basename of the projection file
20            rather than include the entire path.
21    
22            * Thuban/Model/resource.py: Fix missed proj functions that
23            needed to be renamed.
24    
25    2003-06-12  Jonathan Coles   <[email protected]>
26    
27            * Thuban/Model/classification.py: Removed assert statements that
28            tested if the variable was an instance of Color.
29    
30            * Thuban/Model/color.py (Color): Remove commented code that isn't
31            used.
32            (Transparent): Renamed from NoColor. Doesn't inherit from Color.
33            Fixes RTbug #1835.
34            (Transparent.__eq__, Transparent.__ne, Transparent.__repr): New.
35            Needed now that the class doesn't inherit from Color.
36    
37    2003-06-12  Jonathan Coles   <[email protected]>
38    
39            * test/test_save.py (XMLWriterTest.testEncode): Explicitly
40            check unicode strings.
41    
42            * test/test_layer.py: Check for existence of gdal.
43    
44    2003-06-12  Jonathan Coles   <[email protected]>
45        
46            * Thuban/Model/xmlreader.py: New. Contains the XMLReader class
47            that was in load.py
48    
49            * Thuban/Model/xmlwriter.py: New. Contains the XMLWriter class
50            that was in save.py
51    
52    2003-06-12  Jonathan Coles   <[email protected]>
53    
54            This is largely a collection of bug fixes. We also handle the
55            case where gdal is not on the system. The XMLReader and XMLWriter
56            classes were moved into there own files to resolve some circular
57            import references and because they shouldn't really be in the
58            file that is dediciated to reading/writing session files since
59            they are also used elsewhere.
60    
61            * Thuban/Model/classgen.py: Renamed functions to follow the
62            function_names_with_underscores style. Fixes RTbug #1903.
63            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
64    
65            * Thuban/Model/layer.py: Import gdal only if it available.
66            (RasterLayer): Handle the case where the gdal library is unavailable.
67            Addresses RTbug #1877.
68    
69            * Thuban/Model/load.py (XMLReader): Moved into seperate file
70            xmlreader.py.
71    
72    2003-06-12  Jonathan Coles   <[email protected]>
73    
74            This is largely a collection of bug fixes. We also handle the
75            case where gdal is not on the system. The XMLReader and XMLWriter
76            classes were moved into there own files to resolve some circular
77            import references and because they shouldn't really be in the
78            file that is dediciated to reading/writing session files since
79            they are also used elsewhere.
80    
81            * Thuban/Model/classgen.py: Renamed functions to follow the
82            function_names_with_underscores style. Fixes RTbug #1903.
83            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
84    
85            * Thuban/Model/layer.py: Import gdal only if it available.
86            (RasterLayer): Handle the case where the gdal library is unavailable.
87            Addresses RTbug #1877.
88    
89            * Thuban/Model/load.py (XMLReader): Moved into seperate file
90            xmlreader.py.
91    
92            * Thuban/Model/save.py (escape, XMLWriter): Moved into seperate
93            file xmlwriter.py.
94    
95            * Thuban/Model/resource.py: Renamed functions to following the
96            function_names_with_underscores style.
97            (has_gdal_support): New function that returns true if the gdal
98            library is available. Addresses RTbug #1877.
99    
100            * Thuban/UI/application.py (ThubanApplication.OpenSession):
101            Display a message box if the gdal library is not available, but
102            only if there are any layers that would use it. Addresses RTbug #1877.
103    
104            * Thuban/UI/classgen.py: Use renamed projection resource functions.
105            (GenUniformPanel.__CalcStepping): Fix a slight discrepency
106            when using integers versus floats.
107    
108            * Thuban/UI/mainwindow.py (_has_gdal_support): New. Used to
109            determine if the "Add Image Layer" menu option should be
110            greyed out or not. Addresses RTbug #1877.
111    
112            * Thuban/UI/projdialog.py: Use renamed projection resource functions.
113    
114            * Thuban/UI/renderer.py (MapRenderer.render_map): Only try to
115            optimize if a raster layer is visible. Fixes RTbug #1931.
116            Only draw the raster layer if the gdal library is available.
117            Addresses RTbug #1877.
118    
119            * test/test_classgen.py: Add tests for generate_singletons,
120            generate_uniform_distribution, generate_quantiles. Fixes RTbug #1903.
121            (test_calculate_quantiles): Fix some tests to catch the new
122            ValueError that is raised.
123    
124            * test/test_proj.py: Use renamed projection resource functions.
125    
126            * test/test_save.py (SaveSessionTest.testClassifiedLayer): New
127            test for saving classified layers. Fixes RTbug #1902.
128            (XMLWriterTest): New. Tests the XMLWriter class. Fixes RTbug #1851.
129    
130    2003-06-12  Jan-Oliver Wagner <[email protected]>
131    
132            Fix for http://intevation.de/rt/webrt?serial_num=1900.
133    
134            * Thuban/UI/multiplechoicedialog.py: New. A multiple choice dialog.
135    
136            * Thuban/UI/mainwindow.py: import wxMultipleChoiceDialog from
137            multiplechoicedialog.py rather than from the wxPython library.
138    
139    2003-06-11  Frank Koormann  <[email protected]>
140    
141            * Thuban/Lib/fileutil.py (get_application_dir): Minor stability
142            update.
143    
144    2003-06-11  Frank Koormann  <[email protected]>
145    
146            * Thuban/Lib/fileutil.py (get_application_dir): New function to
147            determine the absolute .thuban/thuban directory under
148            "posix" (os.expanduser) and "nt" (read AppData registry key).
149    
150            * Thuban/Model/resource.py: Use get_application_dir
151    
152            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
153            Use get_application_dir.
154    
155    2003-06-10  Bernhard Herzog  <[email protected]>
156    
157            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Subscribe to
158            the messages MAP_LAYERS_REMOVED messages
159            (LayerTableFrame.OnClose): Unsubscribe from it.
160            (LayerTableFrame.map_layers_removed): New. Receiver for
161            MAP_LAYERS_REMOVED. Close the dialog when the layer whose the
162            dialog is showing is removed.
163    
164    2003-06-10  Bernhard Herzog  <[email protected]>
165    
166            * Thuban/Lib/connector.py (Connector.Issue): Iterate over a copy
167            of the receivers list so that unsubscribing in a receiver doesn't
168            modify it while iterating over it.
169    
170            * test/test_connector.py
171            (ConnectorTest.test_disconnect_in_receiver): New. Test whether
172            unsubscribing in a receiver works correctly. See docstring for
173            details
174    
175    2003-06-10  Bernhard Herzog  <[email protected]>
176    
177            * Thuban/Model/messages.py (LAYER_SHAPESTORE_REPLACED): New
178            message.
179    
180            * Thuban/Model/layer.py (Layer.SetShapeStore): Send
181            LAYER_SHAPESTORE_REPLACED when the shapestore changes. A
182            LAYER_CHANGED will still be sent if the classification changes.
183    
184            * Thuban/UI/classifier.py (Classifier.__init__): Add the map as
185            parameter so we can subscribe to some of its messages
186            (Classifier.__init__): Subscribe to the map's MAP_LAYERS_REMOVED
187            and the layer's LAYER_SHAPESTORE_REPLACED
188            (Classifier.unsubscribe_messages): New. Unsubscribe from message
189            subscribed to in __init__
190            (Classifier.map_layers_removed)
191            (Classifier.layer_shapestore_replaced): receivers for the messages
192            subscribed to in __init__. Unsubscribe and close the dialog
193    
194            * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): Pass
195            the map to the Classifier dialog
196    
197            * test/test_layer.py (SetShapeStoreTests): Derive from
198            SubscriberMixin as well so we can test messages
199            (SetShapeStoreTests.setUp): Subscribe to some of the layer's
200            messages
201            (SetShapeStoreTests.tearDown): Clear the messages again
202            (SetShapeStoreTests.test_sanity): Expand the doc-string and check
203            for the modified flag too
204            (SetShapeStoreTests.test_set_shape_store_modified_flag): New test
205            to check whether SetShapeStore sets the modified flag
206            (SetShapeStoreTests.test_set_shape_store_different_field_name)
207            (SetShapeStoreTests.test_set_shape_store_same_field)
208            (SetShapeStoreTests.test_set_shape_store_same_field_different_type):
209            Add tests for the messages. This checks both the new
210            LAYER_SHAPESTORE_REPLACED and the older LAYER_CHANGED
211    
212  2003-06-06  Jan-Oliver Wagner <[email protected]>  2003-06-06  Jan-Oliver Wagner <[email protected]>
213    
214          * Thuban/UI/mainwindow.py: Improved and partly added help texts for          * Thuban/UI/mainwindow.py: Improved and partly added help texts for

Legend:
Removed from v.1141  
changed lines
  Added in v.1191

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26