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

Legend:
Removed from v.1619  
changed lines
  Added in v.1651

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26