1 |
|
2003-08-21 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
Make postgis support really optional including insensitive menu |
4 |
|
items. |
5 |
|
|
6 |
|
* Thuban/Model/postgisdb.py (has_postgis_support): New. Return |
7 |
|
whether the postgis is supported. |
8 |
|
|
9 |
|
* Thuban/UI/dbdialog.py: Put the psycopg import into try..except |
10 |
|
to make postgis support optional |
11 |
|
|
12 |
|
* Thuban/UI/mainwindow.py (_has_postgis_support): New. Context |
13 |
|
version of Thuban.Model.postgisdb.has_postgis_support |
14 |
|
(database_management command): Make it only sensitive if postgis |
15 |
|
is supported. |
16 |
|
|
17 |
|
2003-08-21 Jan-Oliver Wagner <[email protected]> |
18 |
|
|
19 |
|
* Doc/manual/thuban-manual.xml: Added CVS revision for rev-history. |
20 |
|
(section Adding and Removing Layers): Added text and described |
21 |
|
multi-selection. |
22 |
|
(chapter Extensions): New. |
23 |
|
|
24 |
|
2003-08-21 Jan-Oliver Wagner <[email protected]> |
25 |
|
|
26 |
|
* Thuban/UI/mainwindow.py (MainWindow.AddLayer): Changed dialog |
27 |
|
settings to allow multiple files to load into the map. |
28 |
|
Also reduced selection to *.shp as a default. |
29 |
|
|
30 |
|
2003-08-20 Bernhard Herzog <[email protected]> |
31 |
|
|
32 |
|
Add dialogs and commands to open database connections and add |
33 |
|
database layers. |
34 |
|
|
35 |
|
* Thuban/UI/mainwindow.py (MainWindow.DatabaseManagement): New |
36 |
|
method to open the database connection management dialog |
37 |
|
(MainWindow.AddDBLayer): New method to add a layer from a database |
38 |
|
(_has_dbconnections): New helper function to use for sensitivity |
39 |
|
(database_management command, layer_add_db command): New commands |
40 |
|
that call the above new methods. |
41 |
|
(main_menu): Add the new commands to the menu. |
42 |
|
|
43 |
|
* Thuban/Model/postgisdb.py (PostGISConnection.__init__) |
44 |
|
(PostGISConnection.connect): Establish the actual connection in a |
45 |
|
separate method and call it in __init__. This makes it easier to |
46 |
|
override the behavior in test cases |
47 |
|
(PostGISConnection.BriefDescription): New method to return a brief |
48 |
|
description for use in dialogs. |
49 |
|
|
50 |
|
* test/test_postgis_db.py (NonConnection): DB connection that |
51 |
|
doesn't actually connect |
52 |
|
(TestBriefDescription): New class with tests for the new |
53 |
|
BriefDescription method |
54 |
|
|
55 |
2003-08-19 Jan-Oliver Wagner <[email protected]> |
2003-08-19 Jan-Oliver Wagner <[email protected]> |
56 |
|
|
57 |
Moved anything from extensions to libraries. |
Moved anything from extensions to libraries. |