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

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26