26 |
from gnue.common.datasources import GDataSource, GConnections, GLoginHandler |
from gnue.common.datasources import GDataSource, GConnections, GLoginHandler |
27 |
# import GBaseApp to setup i18n |
# import GBaseApp to setup i18n |
28 |
from gnue.common.apps import GConfig,GBaseApp |
from gnue.common.apps import GConfig,GBaseApp |
29 |
|
from gnue import paths |
30 |
|
|
31 |
|
|
32 |
#################################################################### |
#################################################################### |
41 |
if os.environ.has_key('GNUE_CONNECTIONS'): |
if os.environ.has_key('GNUE_CONNECTIONS'): |
42 |
connections_file = os.environ['GNUE_CONNECTIONS'] |
connections_file = os.environ['GNUE_CONNECTIONS'] |
43 |
else: |
else: |
44 |
connections_file = "" |
connections_file = os.path.join (paths.config, "connections.conf") |
45 |
try: |
try: |
46 |
connections = GConnections.GConnections(connections_file) |
connections = GConnections.GConnections(connections_file) |
47 |
except GConnections.InvalidFormatError, msg: |
except GConnections.InvalidFormatError, msg: |