/[gnue]/gnue-common/src/apps/GBaseApp.py
ViewVC logotype

Diff of /gnue-common/src/apps/GBaseApp.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.38 by jamest, Tue Apr 1 03:23:20 2003 UTC revision 1.39 by reinhard, Fri Sep 26 14:24:55 2003 UTC
# Line 40  import os Line 40  import os
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...
# Line 113  class GBaseApp: Line 114  class GBaseApp:
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,
# Line 262  class GBaseApp: Line 265  class GBaseApp:
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 ') \

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.39

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26