/[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 756 by jonathan, Fri Apr 25 14:48:44 2003 UTC revision 790 by bh, Wed Apr 30 11:06:07 2003 UTC
# Line 1  Line 1 
1    2003-04-30  Bernhard Herzog  <[email protected]>
2    
3            * Thuban/UI/view.py: Fix some typos.
4    
5            * Thuban/UI/mainwindow.py (MainWindow.identify_view_on_demand): Do
6            not pop up the dialog if the selection becomes empty (this could
7            happen if e.g. a new selection is opened while the identify tool
8            is active and dialog had been closed)
9    
10    2003-04-30  Bernhard Herzog  <[email protected]>
11    
12            * Thuban/Model/transientdb.py (TransientTableBase.__init__): New
13            instance variable read_record_last_result
14            (TransientTableBase.read_record): Make sure reading the same
15            record twice works. The implementation uses the new instance
16            variable read_record_last_result
17    
18            * test/test_transientdb.py
19            (TestTransientTable.test_transient_table_read_twice): New test
20            case for the above bug-fix.
21    
22    2003-04-29  Bernhard Herzog  <[email protected]>
23    
24            * Thuban/Model/session.py (Session.Destroy): Explicitly close the
25            transient DB if it exists to make sure it doesn't leave a journal
26            file in the temp directory.
27    
28            * Thuban/Model/transientdb.py (TransientDatabase.close): Set
29            self.conn to None after closing the connection to make sure it's
30            not closed twice
31    
32    2003-04-29  Jonathan Coles   <[email protected]>
33    
34            Add a visible parameter in the layer XML tag. The default value is
35            "true". If anything other than "false" is specified we also assume
36            "true". Addresses RTbug #1025.
37    
38            * Doc/thuban.dtd: Add visible parameter to a layer.
39    
40            * Thuban/Model/layer.py (BaseLayer.__init__): Change default value
41            of visible from 1 to True.
42            (Layer.__init__): Change default value of visible from 1 to True.
43    
44            * Thuban/Model/load.py (SessionLoader.start_layer): Read visible
45            parameter.
46    
47            * Thuban/Model/save.py (SessionSaver.write_layer): Save visible
48            parameter.
49    
50            * test/test_load.py: Add new test data contents_test_visible.
51            (LoadSessionTest.setUp): save test data.
52            (LoadSessionTest.testLayerVisibility): Test if the visible flag
53            is loaded correctly.
54    
55            * test/test_save.py (SaveSessionTest.testSingleLayer): Add test
56            for saving an invisible layer.
57    
58    2003-04-29  Jonathan Coles   <[email protected]>
59    
60            * Thuban/UI/mainwindow.py (MainWindow.SetMap): Look up the
61            legend dialog box and tell it to change its map to the one
62            supplied to SetMap(). Fixes RTbug #1770.
63    
64    2003-04-29  Bernhard Herzog  <[email protected]>
65    
66            Next step of table implementation. Introduce a transient database
67            using SQLite that some of the data is copied to on demand. This
68            allows us to do joins and other operations that require an index
69            for good performance with reasonable efficiency. Thuban now needs
70            SQLite 2.8.0 and pysqlite 0.4.1. Older versions may work but I
71            haven't tested that.
72            
73            * Thuban/Model/transientdb.py: New. Transient database
74            implementation.
75    
76            * test/test_transientdb.py: New. Tests for the transient DB
77            classes.
78    
79            * Thuban/Model/session.py (AutoRemoveFile, AutoRemoveDir): New
80            classes to help automatically remove temporary files and
81            directories.
82            (Session.__init__): New instance variables temp_dir for the
83            temporary directory and transient_db for the SQLite database
84            (Session.temp_directory): New. Create a temporary directory if not
85            yet done and return its name. Use AutoRemoveDir to have it
86            automatically deleted
87            (Session.TransientDB): Instantiate the transient database if not
88            done yet and return it.
89    
90            * Thuban/Model/data.py (ShapefileStore.__init__): Use an
91            AutoTransientTable so that data is copied to the transient DB on
92            demand.
93            (SimpleStore): New class that simply combines a table and a
94            shapefile
95    
96            * Thuban/Model/table.py (Table, DBFTable): Rename Table into
97            DBFTable and update its doc-string to reflect the fact that this
98            is only the table interface to a DBF file. Table is now an alias
99            for DBFTable for temporary backwards compatibility.
100    
101            * Thuban/UI/application.py (ThubanApplication.OnExit): Make sure
102            the last reference to the session goes away so that the temporary
103            files are removed properly.
104    
105            * test/test_load.py (LoadSessionTest.tearDown): Remove the
106            reference to the session to make sure the temporary files are
107            removed.
108    
109    2003-04-29  Bernhard Herzog  <[email protected]>
110    
111            * Thuban/Model/load.py (XMLReader.__init__, XMLReader.read): Turn
112            the __parser instance variable into a normal local variable in
113            read. It's only used there and read will never be called more than
114            once. Plus it introduces a reference cycle that keeps can keep the
115            session object alive for a long time.
116    
117    2003-04-29  Jonathan Coles   <[email protected]>
118    
119            * Thuban/Model/proj.py (Projection): Removed Set*() methods to make
120            Projection an immutable item. Fixes RTbug #1825.
121            (Projection.__init__): Initialize instance variables here.
122            (ProjFile.Replace): New. Replace the given projection object with
123            the new projection object. This solves the problem of needing the
124            mutator Projection.SetProjection() in the ProjFrame class and
125            allows a projection to change parameters without changing its
126            location in the file.
127    
128            * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs): Dialog should
129            be of type wxSAVE and should verify overwriting a file.
130    
131            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Use the new
132            ProjFile.Replace() method instead of the mutator
133            Projection.SetProjection(). Also requires that we reassign the
134            client data to the new projection.
135    
136            * test/test_proj.py (TestProjection.test): Test GetName() and
137            GetAllParameters()
138            (TestProjFile.test): Remove tests for Set*() methods. Add tests
139            for Replace().
140    
141  2003-04-25  Jonathan Coles   <[email protected]>  2003-04-25  Jonathan Coles   <[email protected]>
142    
143          * Thuban/Model/save.py (SessionSaver.write_projection): Make sure          * Thuban/Model/save.py (SessionSaver.write_projection): Make sure

Legend:
Removed from v.756  
changed lines
  Added in v.790

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26