/[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 1623 by jan, Thu Aug 21 11:56:38 2003 UTC revision 1655 by bh, Mon Aug 25 16:05:33 2003 UTC
# Line 1  Line 1 
1    2003-08-25  Bernhard Herzog  <[email protected]>
2    
3            * Thuban/UI/application.py
4            (ThubanApplication.run_db_param_dialog): New. Suitable as a
5            db_connection_callback. Main difference is that the dialog run
6            from this method doesn't have a parent so it can be used even when
7            there is no main window
8            (ThubanApplication.OpenSession): Use self.run_db_param_dialog if
9            no db_connection_callback was given. This way the dialog pops up
10            even when the .thuban file was given as a command line parameter.
11    
12    2003-08-25  Bernhard Herzog  <[email protected]>
13    
14            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Release the the mouse
15            before calling MouseLeftUp. MouseLeftUp may pop up modal dialogs
16            which leads to an effectively frozen X session because the user
17            can only interact with the dialog but the mouse is still grabbed
18            by the canvas.
19            Also, call the tool's Hide method before MouseLeftUp because
20            MouseLeftUp may change the tool's coordinates.
21    
22    2003-08-25  Bernhard Herzog  <[email protected]>
23    
24            * Thuban/UI/application.py (ThubanApplication.OpenSession): Catch
25            LoadCancelled exceptions and handle them by returning immediately.
26    
27    2003-08-25  Bernhard Herzog  <[email protected]>
28    
29            GUI part of loading sessions with postgis connections which may
30            require user interaction to get passwords or updated parameters
31    
32            * Thuban/UI/dbdialog.py (DBDialog): Reimplement to make it look a
33            bit nucer and be more generic.
34            (DBFrame.OnAdd): Adapt to new DBDialog interface
35    
36            * Thuban/UI/application.py (ThubanApplication.OpenSession): New
37            optional parameter db_connection_callback which is passed to
38            load_session.
39    
40            * Thuban/UI/mainwindow.py (MainWindow.run_db_param_dialog): New.
41            Suitable as a db_connection_callback
42            (MainWindow.OpenSession): Use self.run_db_param_dialog as the
43            db_connection_callback of the application's OpenSession method
44    
45    
46    2003-08-25  Bernhard Herzog  <[email protected]>
47    
48            Basic loading of sessions containing postgis connections:
49    
50            * Thuban/Model/load.py (LoadError): Add doc-string
51            (LoadCancelled): New exception class to indicate a cancelled load
52            (SessionLoader.__init__): Add the db_connection_callback parameter
53            which will be used by the loader to get updated parameters and a
54            password for a database connection
55            (SessionLoader.__init__): Add the new XML elements to the
56            dispatchers dictionary
57            (SessionLoader.check_attrs): Two new conversions, ascii to convert
58            to a byte-string object and idref as a generic id reference
59            (SessionLoader.start_dbconnection)
60            (SessionLoader.start_dbshapesource): New. Handlers for the new XML
61            elements
62            (load_session): Add the db_connection_callback to pass through the
63            SessionLoader
64    
65            * test/test_load.py (TestPostGISLayer, TestPostGISLayerPassword):
66            New classes to test loading of sessions with postgis database
67            connections.
68    
69    2003-08-25  Bernhard Herzog  <[email protected]>
70    
71            * Thuban/UI/mainwindow.py (__ThubanVersion__): Remove this and
72            replace it and the comment with __BuildDate__ by the Source: and
73            Id: cvs keywords as used in the other files.
74    
75    2003-08-25  Bernhard Herzog  <[email protected]>
76    
77            * Thuban/Model/load.py (SessionLoader.check_attrs): Raise a
78            LoadError when a required attribute is missing. The code used to
79            be commented out for some reason, but probably should have been
80            active.
81    
82            * test/test_load.py (TestLoadError.test): Test the message in the
83            LoadError too to make sure it really is about the missing
84            attribute
85    
86    2003-08-22  Bernhard Herzog  <[email protected]>
87    
88            * test/test_save.py (SaveSessionTest.test_dbf_table)
89            (SaveSessionTest.test_joined_table): Add XML validation tests.
90    
91    2003-08-22  Bernhard Herzog  <[email protected]>
92    
93            Implement saving a session with a postgis connection
94    
95            * Resources/XML/thuban-0.9.dtd (dbconnection, dbshapesource) New
96            elements for database connections and shapestores using db
97            connections
98            (session): Add the dbconnections to the content model
99    
100            * Thuban/Model/save.py (SessionSaver.write_db_connections): New.
101            Write the db connections
102            (SessionSaver.write_session): Call write_db_connections to write
103            the connection before the data sources
104            (SessionSaver.write_data_containers): Handle postgis shapestores
105    
106            * test/test_save.py (SaveSessionTest.thubanids)
107            (SaveSessionTest.thubanidrefs): Update for new DTD
108            (SaveSessionTest.test_save_postgis): New. Test saving a session
109            with postgis connections
110    
111            * Thuban/Model/postgisdb.py (PostGISTable.DBConnection)
112            (PostGISTable.TableName): New accessor methods for the connection
113            and table name
114    
115            * test/test_postgis_db.py (TestPostGISTable.test_dbconn)
116            (TestPostGISTable.test_dbname): New methods to test the new
117            PostGISConnection methods
118    
119    2003-08-22  Bernhard Herzog  <[email protected]>
120    
121            * Thuban/Model/postgisdb.py (ConnectionError): New exception class
122            for exceptions occurring when establishing a Database connection
123            (PostGISConnection.connect): Catch psycopg.OperationalError during
124            connects and raise ConnectionError.
125    
126            * test/test_postgis_db.py (TestPostgisDBExceptions): New class for
127            tests for database exceptions
128    
129    2003-08-22  Bernhard Herzog  <[email protected]>
130    
131            Prepare the test suite for tests with required authentication
132    
133            * test/postgissupport.py (PostgreSQLServer.__init__): Add instance
134            variables with two predefined users/passwords, one for the admin
135            and one for a non-privileged user.
136            (PostgreSQLServer.createdb): Pass the admin name to initdb and add
137            the non-privileged user to the database and set the admin password
138            (PostgreSQLServer.wait_for_postmaster): Use the admin user name.
139            Better error reporting
140            (PostgreSQLServer.connection_params)
141            (PostgreSQLServer.connection_string): New methods to return
142            information about how to connect to the server
143            (PostgreSQLServer.execute_sql): New. Convenience method to execute
144            SQL statements
145            (PostgreSQLServer.require_authentication): Toggle whether the
146            server requires authentication
147            (PostgreSQLServer.create_user, PostgreSQLServer.alter_user): New.
148            Add or alter users
149            (PostGISDatabase.initdb): Pass the admin name one the
150            subprocesses' command lines. Grant select rights on
151            geometry_columns to everybody.
152            (upload_shapefile): Use the admin name and password when
153            connecting. Grant select rights on the new table to everybody.
154    
155            * test/test_viewport.py (TestViewportWithPostGIS.setUp): Use the
156            server's new methods to get the connection parameters.
157    
158            * test/test_postgis_session.py (TestSessionWithPostGIS.setUp)
159            (TestSessionWithPostGIS.test_remove_dbconn_exception): Use the
160            server's new methods to get the connection parameters.
161    
162            * test/test_postgis_db.py
163            (TestPostGISConnection.test_gis_tables_empty)
164            (TestPostGISConnection.test_gis_tables_non_empty)
165            (PostGISStaticTests.setUp): Use the server's new methods to get
166            the connection parameters.
167    
168    2003-08-22  Bernhard Herzog  <[email protected]>
169    
170            * Thuban/UI/about.py (About.__init__): Add the psycopg version.
171    
172            * Thuban/version.py: Add psycopg version
173    
174            * Thuban/Model/postgisdb.py (psycopg_version): New. Return the
175            version of the psycopg module
176    
177    2003-08-22  Bernhard Herzog  <[email protected]>
178    
179            * Thuban/UI/dbdialog.py (DBPwdDlg): Removed because it's not used.
180            (DBFrame.OnEdit): Removed because it's not used and wouldn't work
181            at the moment. The functionality should probably be implemented
182            some time, though.
183            (DBFrame.OnRemove): Display a message if the connection can't be
184            removed because it's still in use.
185    
186    2003-08-22  Jan-Oliver Wagner <[email protected]>
187    
188            * Thuban/UI/about.py (About.__init__): split up the huge about
189            text into elements/lists for easier translation. This fixes bug
190            https://intevation.de/rt/webrt?serial_num=2058
191            Also, made some forgotten string available for the i18n.
192    
193    2003-08-21  Bernhard Herzog  <[email protected]>
194    
195            Make postgis support really optional including insensitive menu
196            items.
197    
198            * Thuban/Model/postgisdb.py (has_postgis_support): New. Return
199            whether the postgis is supported.
200    
201            * Thuban/UI/dbdialog.py: Put the psycopg import into try..except
202            to make postgis support optional
203    
204            * Thuban/UI/mainwindow.py (_has_postgis_support): New. Context
205            version of Thuban.Model.postgisdb.has_postgis_support
206            (database_management command): Make it only sensitive if postgis
207            is supported.
208    
209    2003-08-21  Jan-Oliver Wagner <[email protected]>
210    
211            * Doc/manual/thuban-manual.xml: Added CVS revision for rev-history.
212            (section Adding and Removing Layers): Added text and described
213            multi-selection.
214            (chapter Extensions): New.
215    
216  2003-08-21  Jan-Oliver Wagner <[email protected]>  2003-08-21  Jan-Oliver Wagner <[email protected]>
217    
218          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Changed dialog          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Changed dialog

Legend:
Removed from v.1623  
changed lines
  Added in v.1655

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26