/[thuban]/branches/greater-ms3/thuban/ChangeLog
ViewVC logotype

Diff of /branches/greater-ms3/thuban/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 716 by jonathan, Wed Apr 23 08:59:19 2003 UTC revision 743 by jonathan, Fri Apr 25 10:26:03 2003 UTC
# Line 1  Line 1 
1    2003-04-25  Jonathan Coles   <[email protected]>
2    
3            * Thuban/Model/load.py (SessionLoader.start_projection): Remember
4            the projection name and use it when constructing the Projection
5            object.
6    
7            * Thuban/Model/proj.py (Projection.__init__): Change the default
8            value for 'name' to None and then test if name is equal to None
9            in the body of the constructor. This way the caller doesn't have to
10            know what the default value should be. Namely, useful in load.py
11            where we have to pick a default value if the 'name' parameter
12            doesn't exist in the XML file.
13    
14            * test/test_load.py (LoadSessionTest.testLayerProjection): New.
15            Tests a file where a layer has a projection.
16    
17    2003-04-25  Jonathan Coles   <[email protected]>
18    
19            * Thuban/Model/layer.py (Layer.TreeInfo): Add an item to the
20            tree for projection information.
21    
22            * Thuban/Model/load.py (XMLReader.GetFilename): Renamed from
23            XMLReader.GetFileName.
24            (SessionLoader): Added support for loading projection tags that
25            appear inside a layer.
26    
27            * Thuban/Model/proj.py (ProjFile): Document the class. Move
28            back to using a list because the order of the projections in
29            the file is important to maintain. Fixes RTbug #1817.
30    
31            * Thuban/Model/resource.py: Rename calls to ProjFile.GetFileName
32            to ProjFile.GetFilename.
33    
34            * Thuban/Model/save.py (SessionSaver.write_layer): Save projection
35            information.
36    
37            * Thuban/UI/projdialog.py (ProjFrame._OnAddToList): Renamed from
38            ProjFrame._OnSaveAs. Removed old dead code from previous
39            implementation.
40            (ProjFrame._OnExport): Add support for exporting more than one
41            projection to a single file.
42            (ProjFrame.__FillAvailList): use string formatting (% operator)
43            to build strings that are (partly) translated. Fixes RTbug #1818.
44    
45            * test/test_proj.py (TestProjFile.test): New. Tests the base ProjFile
46            class.
47    
48    2003-04-24  Bernhard Herzog  <[email protected]>
49    
50            * po/es.po: Updated Spanish translation by Daniel Calvelo Aros
51    
52            * po/fr.po: New. French translation by Daniel Calvelo Aros
53    
54            * Thuban/UI/projdialog.py (ProjFrame._OnSaveAs): Don't translate
55            empty strings.
56    
57    2003-04-24  Jonathan Coles   <[email protected]>
58    
59            * Thuban/Model/layer.py (Layer.GetProjection): New. Needed to
60            implement the interface that the ProjFrame dialog expects.
61    
62            * Thuban/Model/proj.py (Projection.SetName): New. Allows the
63            name of the projection to be changed.
64            (ProjFile): Use a dictionary instead of a list so that removing
65            projections is easier and we are sure about uniqueness.
66            (ProjFile.Remove): Remove the given projection object.
67    
68            * Thuban/Model/resource.py (GetSystemProjFiles, GetUserProjFiles):
69            Return a list with only one projection file instead of searching for
70            any projection file. This simplifies many things if the user can
71            only have one system file and one user file.
72    
73            * Thuban/UI/classgen.py: Change all references to
74            genCombo to genChoice.
75    
76            * Thuban/UI/mainwindow.py: Add a Projection option under the
77            layer menu.
78            (MainWindow.LayerProjection): New. Open up a projection window
79            for a layer.
80    
81            * Thuban/UI/projdialog.py: Large changes to how the dialog is
82            laid out. Use three panels instead of one. One for the list of
83            projections, one for the edit controls, and one for the buttons.
84            Fixed resizing problems so that the dialog resizes correctly
85            when the projection panel changes. Added import/export, save, and
86            new buttons/functionality.
87    
88    2003-04-24  Bernhard Herzog  <[email protected]>
89    
90            First step towards table management. Introduce a simple data
91            abstraction so that we replace the data a layer uses more easily
92            in the next step.
93    
94            * Thuban/Model/data.py: New file with a simple data abstraction
95            that bundles shapefile and dbffile into one object.
96    
97            * Thuban/Model/session.py (Session.OpenShapefile): New method to
98            open shapefiles and return a shape store object
99    
100            * Thuban/Model/layer.py (Layer.__init__): Pass the data as a store
101            object instead of a shapefile filename. This introduces a new
102            instance variable store holding the datastore. For intermediate
103            backwards compatibility keep the old instance variables.
104            (open_shapefile): Removed. No longer needed with the shape store.
105            (Layer.SetShapeStore, Layer.ShapeStore): New methods to set and
106            get the shape store used by a layer.
107            (Layer.Destroy): No need to explicitly destroy the shapefile or
108            table anymore.
109    
110            * Thuban/UI/mainwindow.py (MainWindow.AddLayer)
111            (MainWindow.AddLayer): Use the session's OpenShapefile method to
112            open shapefiles
113    
114            * Thuban/Model/load.py (ProcessSession.start_layer): Use the
115            session's OpenShapefile method to open shapefiles
116    
117            * test/test_classification.py
118            (TestClassification.test_classification): Use the session's
119            OpenShapefile method to open shapefiles and build the filename in
120            a more platform independed way
121    
122            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
123            Implement to have a session to use in the tests
124            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
125            (TestLayer.test_point_layer, TestLayer.test_empty_layer): Use the
126            session's OpenShapefile method to open shapefiles
127            (TestLayerLegend.setUp): Instantiate a session so that we can use
128            it to open shapefiles.
129            (TestLayerLegend.tearDown): Make sure that all references to
130            layers and session are removed otherwise we may get a resource
131            leak
132    
133            * test/test_map.py (TestMapAddLayer.test_add_layer)
134            (TestMapWithContents.setUp): Instantiate a session so that we can
135            use it to open shapefiles.
136            (TestMapWithContents.tearDown): Make sure that all references to
137            layers, maps and sessions are removed otherwise we may get a
138            resource leak
139            ("__main__"): use support.run_tests() so that more info about
140            uncollected garbage is printed
141    
142            * test/test_save.py (SaveSessionTest.testSingleLayer): Use the
143            session's OpenShapefile method to open shapefiles
144            ("__main__"): use support.run_tests() so that more info about
145            uncollected garbage is printed
146    
147            * test/test_selection.py (TestSelection.tearDown): Make sure that
148            all references to the session and the selection are removed
149            otherwise we may get a resource leak
150            (TestSelection.get_layer): Instantiate a session so that we can
151            use it to open shapefiles.
152            ("__main__"): use support.run_tests() so that more info about
153            uncollected garbage is printed
154    
155            * test/test_session.py (TestSessionBase.tearDown)
156            (TestSessionWithContent.tearDown): Make sure that all references
157            to the session and layers are removed otherwise we may get a
158            resource leak
159            (TestSessionWithContent.setUp): Use the session's OpenShapefile
160            method to open shapefiles
161    
162    2003-04-24  Jonathan Coles   <[email protected]>
163    
164            * Thuban/Model/load.py (XMLReader.read): Should have been checking
165            if the file_or_filename object had the 'read' attribute.
166    
167    2003-04-23  Jonathan Coles   <[email protected]>
168    
169            * Thuban/Model/resource.py: Fixes RTbug #1813.
170            (ReadProjFile): Add documentation about which exceptions are raised.
171            Always pass the exceptions up to the caller.
172            (GetProjFiles): If the directory can't be read return an empty list.
173            If any of the proj files can't be read skip that file and go
174            on to the next one.
175    
176            * test/test_proj.py: Added test cases to handle nonexistent files,
177            unreadable files, and files that don't parse correctly.
178    
179  2003-04-23  Jonathan Coles   <[email protected]>  2003-04-23  Jonathan Coles   <[email protected]>
180    
181          Projection dialog. Allows the user to select from a list          Projection dialog. Allows the user to select from a list

Legend:
Removed from v.716  
changed lines
  Added in v.743

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26