/[gnue]/gnue-common/unittest/datasource.py
ViewVC logotype

Diff of /gnue-common/unittest/datasource.py

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

revision 1.1 by siesel, Mon Sep 8 23:52:06 2003 UTC revision 1.2 by reinhard, Fri Sep 26 14:24:55 2003 UTC
# Line 26  import unittest, os Line 26  import unittest, os
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  ####################################################################  ####################################################################
# Line 40  def createConnections(): Line 41  def createConnections():
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:

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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