40 |
import ConfigParser |
import ConfigParser |
41 |
import gettext |
import gettext |
42 |
from gnue.common.utils.TextUtils import lineWrap |
from gnue.common.utils.TextUtils import lineWrap |
43 |
|
from gnue import paths |
44 |
import locale |
import locale |
45 |
|
|
46 |
# Mac has problems with LC_ALL... |
# Mac has problems with LC_ALL... |
114 |
_('or a URL location ') + \ |
_('or a URL location ') + \ |
115 |
'(http://localhost/connections.conf).' + \ |
'(http://localhost/connections.conf).' + \ |
116 |
_('If this option is not specified, the environent variable ') + \ |
_('If this option is not specified, the environent variable ') + \ |
117 |
_('GNUE_CONNECTIONS is checked.') ], |
_('GNUE_CONNECTIONS is checked.') + \ |
118 |
|
_('If neither of them is set, "%s" is used as a default.') % |
119 |
|
os.path.join (paths.config, "connections.conf")], |
120 |
[ 'help', None, 'help', 0, None, None, |
[ 'help', None, 'help', 0, None, None, |
121 |
_('Displays this help screen.') ], |
_('Displays this help screen.') ], |
122 |
[ 'configuration_options', None, 'configuration-options', 0, None, None, |
[ 'configuration_options', None, 'configuration-options', 0, None, None, |
265 |
elif os.environ.has_key('GNUE_CONNECTIONS'): |
elif os.environ.has_key('GNUE_CONNECTIONS'): |
266 |
self.connections_file = os.environ['GNUE_CONNECTIONS'] |
self.connections_file = os.environ['GNUE_CONNECTIONS'] |
267 |
else: |
else: |
268 |
self.connections_file = "" # temp |
self.connections_file = os.path.join (paths.config, "connections.conf") |
269 |
# self.handleStartupError( |
# self.handleStartupError( |
270 |
# _('Unable to load the connections definition file.\n') \ |
# _('Unable to load the connections definition file.\n') \ |
271 |
# + _('\n Please set the environmental variable GNUE_CONNECTIONS or ') \ |
# + _('\n Please set the environmental variable GNUE_CONNECTIONS or ') \ |