1 |
|
2003-06-16 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
Update to the layer interface: Direct access to the table, |
4 |
|
shapetable, shapefile and filename attributes is now actively |
5 |
|
deprecated by issuing deprecation warnings for all places where |
6 |
|
this happens. |
7 |
|
|
8 |
|
* Thuban/Model/layer.py (Layer.__getattr__): New. Implement access |
9 |
|
to the instance variables table, shapetable, shapefile and |
10 |
|
filename via __getattr__ so that we can issue a deprecation |
11 |
|
warning. |
12 |
|
(Layer.SetShapeStore): Don't set the deprecated instance variables |
13 |
|
any more |
14 |
|
(Layer.SetShapeStore): Don't use deprecated layer instance |
15 |
|
variables |
16 |
|
(Layer.Destroy): No need to explicitly remove the instance |
17 |
|
variables any more |
18 |
|
(Layer.GetFieldType, Layer.Shape): Don't use deprecated layer |
19 |
|
instance variables |
20 |
|
|
21 |
|
* Thuban/UI/classgen.py (ClassGenDialog.__init__) |
22 |
|
(GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve) |
23 |
|
(GenQuantilesPanel.GetList, GenQuantilesPanel.OnRetrieve): Don't |
24 |
|
use deprecated layer instance variables |
25 |
|
|
26 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Don't use |
27 |
|
deprecated layer instance variables |
28 |
|
|
29 |
|
* Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape) |
30 |
|
(IdentifyGridCtrl.selected_shape): Don't set the deprecated layer |
31 |
|
instance variables |
32 |
|
|
33 |
|
* Thuban/UI/tableview.py (LayerTableGrid.select_shapes): Don't use |
34 |
|
deprecated layer instance variables |
35 |
|
|
36 |
|
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Don't use |
37 |
|
deprecated layer instance variables |
38 |
|
|
39 |
|
* Thuban/Model/save.py (SessionSaver.write_layer): Don't use |
40 |
|
deprecated layer instance variables |
41 |
|
|
42 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer) |
43 |
|
(MapRenderer.polygon_render_param): Don't use deprecated layer instance |
44 |
|
variables |
45 |
|
|
46 |
|
* test/runtests.py (main): Turn Thuban's deprecation warnings into |
47 |
|
errors so that they're cought by the tests |
48 |
|
|
49 |
|
* test/test_load.py (TestSingleLayer.test): Don't use deprecated |
50 |
|
layer instance variables |
51 |
|
|
52 |
2003-06-16 Jonathan Coles <[email protected]> |
2003-06-16 Jonathan Coles <[email protected]> |
53 |
|
|
54 |
Fix a problem under Windows whereby if the user double-clicks on a |
Fix a problem under Windows whereby if the user double-clicks on a |