commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnue/common/src/apps GBaseApp.py GConfig.py


From: James Thompson
Subject: gnue/common/src/apps GBaseApp.py GConfig.py
Date: Sat, 22 Mar 2003 15:43:54 -0500

CVSROOT:        /cvsroot/gnue
Module name:    gnue
Changes by:     James Thompson <address@hidden> 03/03/22 15:43:54

Modified files:
        common/src/apps: GBaseApp.py GConfig.py 

Log message:
        added CONFIGFILE to the GBaseapp class so non gnue apps can specify a 
config
        file other than gnue.conf

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/common/src/apps/GBaseApp.py.diff?tr1=1.35&tr2=1.36&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/common/src/apps/GConfig.py.diff?tr1=1.33&tr2=1.34&r1=text&r2=text

Patches:
Index: gnue/common/src/apps/GBaseApp.py
diff -c gnue/common/src/apps/GBaseApp.py:1.35 
gnue/common/src/apps/GBaseApp.py:1.36
*** gnue/common/src/apps/GBaseApp.py:1.35       Mon Mar 17 15:53:30 2003
--- gnue/common/src/apps/GBaseApp.py    Sat Mar 22 15:43:54 2003
***************
*** 68,74 ****
    AUTHOR = "GNU Enterprise Project"
    EMAIL = "address@hidden"
    REPORT_BUGS_TO = "Please report any bugs to address@hidden"
! 
  
    #  Run the program
    #  Should be overwritten by subclasses
--- 68,74 ----
    AUTHOR = "GNU Enterprise Project"
    EMAIL = "address@hidden"
    REPORT_BUGS_TO = "Please report any bugs to address@hidden"
!   CONFIGFILE="gnue.conf"
  
    #  Run the program
    #  Should be overwritten by subclasses
***************
*** 200,206 ****
      # Read the config files
      if application:
        try:
!         self.configurationManager = GConfig.GConfig(application, defaults)
        except ConfigParser.NoSectionError, msg:
          self.handleStartupError(_('The gnue.conf file is incomplete: ')\
                                  + '\n   %s'         % msg)
--- 200,206 ----
      # Read the config files
      if application:
        try:
!         self.configurationManager = GConfig.GConfig(application, defaults, 
configFilename=self.CONFIGFILE)
        except ConfigParser.NoSectionError, msg:
          self.handleStartupError(_('The gnue.conf file is incomplete: ')\
                                  + '\n   %s'         % msg)
Index: gnue/common/src/apps/GConfig.py
diff -c gnue/common/src/apps/GConfig.py:1.33 
gnue/common/src/apps/GConfig.py:1.34
*** gnue/common/src/apps/GConfig.py:1.33        Mon Feb 17 02:32:47 2003
--- gnue/common/src/apps/GConfig.py     Sat Mar 22 15:43:54 2003
***************
*** 43,48 ****
--- 43,49 ----
  
  class GConfig:
    def __init__(self, section, defaults=None, configFilename="gnue.conf", 
homeConfigDir=".gnue"):
+ 
      self._defaultConfigFilename = configFilename
      self._defaultSection = section
      self._loadedConfigs = {}




reply via email to

[Prev in Thread] Current Thread [Next in Thread]