/[thuban]
ViewVC logotype

Revision 1219


Jump to revision: Previous Next
Author: bh
Date: Mon Jun 16 17:42:54 2003 UTC (21 years, 8 months ago)
Changed paths: 11
Log Message:
Update to the layer interface: Direct access to the table,
shapetable, shapefile and filename attributes is now actively
deprecated by issuing deprecation warnings for all places where
this happens.

* Thuban/Model/layer.py (Layer.__getattr__): New. Implement access
to the instance variables table, shapetable, shapefile and
filename via __getattr__ so that we can issue a deprecation
warning.
(Layer.SetShapeStore): Don't set the deprecated instance variables
any more
(Layer.SetShapeStore): Don't use deprecated layer instance
variables
(Layer.Destroy): No need to explicitly remove the instance
variables any more
(Layer.GetFieldType, Layer.Shape): Don't use deprecated layer
instance variables

* Thuban/UI/classgen.py (ClassGenDialog.__init__)
(GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve)
(GenQuantilesPanel.GetList, GenQuantilesPanel.OnRetrieve): Don't
use deprecated layer instance variables

* Thuban/UI/classifier.py (Classifier.__init__): Don't use
deprecated layer instance variables

* Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
(IdentifyGridCtrl.selected_shape): Don't set the deprecated layer
instance variables

* Thuban/UI/tableview.py (LayerTableGrid.select_shapes): Don't use
deprecated layer instance variables

* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Don't use
deprecated layer instance variables

* Thuban/Model/save.py (SessionSaver.write_layer): Don't use
deprecated layer instance variables

* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer)
(MapRenderer.polygon_render_param): Don't use deprecated layer instance
variables

* test/runtests.py (main): Turn Thuban's deprecation warnings into
errors so that they're cought by the tests

* test/test_load.py (TestSingleLayer.test): Don't use deprecated
layer instance variables


Changed paths

Path Details
Directorytrunk/thuban/Thuban/Model/layer.py modified , text changed
Directorytrunk/thuban/Thuban/Model/save.py modified , text changed
Directorytrunk/thuban/Thuban/UI/classgen.py modified , text changed
Directorytrunk/thuban/Thuban/UI/classifier.py modified , text changed
Directorytrunk/thuban/Thuban/UI/identifyview.py modified , text changed
Directorytrunk/thuban/Thuban/UI/mainwindow.py modified , text changed
Directorytrunk/thuban/Thuban/UI/renderer.py modified , text changed
Directorytrunk/thuban/Thuban/UI/tableview.py modified , text changed
Directorytrunk/thuban/Thuban/UI/view.py modified , text changed
Directorytrunk/thuban/test/runtests.py modified , text changed
Directorytrunk/thuban/test/test_load.py modified , text changed

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26