/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/Model/messages.py
ViewVC logotype

Annotation of /branches/WIP-pyshapelib-bramz/Thuban/Model/messages.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1607 - (hide annotations)
Tue Aug 19 12:50:35 2003 UTC (21 years, 6 months ago) by bh
Original Path: trunk/thuban/Thuban/Model/messages.py
File MIME type: text/x-python
File size: 1470 byte(s)
Add the db connection management to the session.

* Thuban/Model/session.py (Session.__init__): New instance
variable db_connections
(Session.AddDBConnection, Session.DBConnections)
(Session.HasDBConnections, Session.CanRemoveDBConnection)
(Session.RemoveDBConnection): New methods to manage and query the
db connections managed by the session
(Session.OpenDBShapeStore): New method to open a shapestore from a
db connection

* Thuban/Model/messages.py (DBCONN_REMOVED, DBCONN_ADDED): New
messages for the db connection handling in the session

* test/test_postgis_session.py: New. test cases for the session's
db connection handling with postgis connections

1 bh 1068 # Copyright (c) 2001, 2003 by Intevation GmbH
2 bh 6 # Authors:
3     # Bernhard Herzog <[email protected]>
4     #
5     # This program is free software under the GPL (>=v2)
6     # Read the file COPYING coming with Thuban for details.
7    
8     """
9     Define the message types used by the classes implementing Thuban's data
10     model. The messages types are simply strings. The message system itself
11     is implemented in Thuban.Lib.connector.
12     """
13     __version__ = "$Revision$"
14    
15     # Common message types
16     TITLE_CHANGED = "TITLE_CHANGED"
17     CHANGED = "CHANGED"
18    
19 jonathan 1429 # classification specific message types
20     CLASS_CHANGED = "CLASS_CHANGED"
21    
22 bh 6 # layer specific message types
23     LAYER_PROJECTION_CHANGED = "LAYER_PROJECTION_CHANGED"
24     LAYER_LEGEND_CHANGED = "LAYER_LEGEND_CHANGED"
25     LAYER_VISIBILITY_CHANGED = "LAYER_VISIBILITY_CHANGED"
26 jonathan 547 LAYER_CHANGED = "LAYER_CHANGED"
27 bh 1142 LAYER_SHAPESTORE_REPLACED = "LAYER_SHAPESTORE_REPLACED"
28 bh 6
29     # Map specific message types
30 jonathan 547 MAP_STACKING_CHANGED = "MAP_STACKING_CHANGED"
31     MAP_LAYERS_CHANGED = "MAP_LAYERS_CHANGED"
32     MAP_LAYERS_ADDED = "MAP_LAYERS_ADDED"
33     MAP_LAYERS_REMOVED = "MAP_LAYERS_REMOVED"
34 bh 6 MAP_PROJECTION_CHANGED = "MAP_PROJECTION_CHANGED"
35    
36 jan 196 # Extension specific message types
37     EXTENSION_CHANGED = "EXTENSION_CHANGED"
38     EXTENSION_OBJECTS_CHANGED = "EXTENSION_OBJECTS_CHANGED"
39    
40 bh 6 # Session specific message types
41     MAPS_CHANGED = "MAPS_CHANGED"
42 jan 196 EXTENSIONS_CHANGED = "EXTENSIONS_CHANGED"
43 bh 6 FILENAME_CHANGED = "FILENAME_CHANGED"
44 bh 1068
45     TABLE_REMOVED = "TABLE_REMOVED"
46    
47 bh 1607 DBCONN_ADDED = "DBCONN_ADDED"
48     DBCONN_REMOVED = "DBCONN_REMOVED"

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26