commit-gnue
[Top][All Lists]
Advanced

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

r6291 - trunk/gnue-common/src/apps


From: jamest
Subject: r6291 - trunk/gnue-common/src/apps
Date: Wed, 15 Sep 2004 16:52:31 -0500 (CDT)

Author: jamest
Date: 2004-09-15 16:52:31 -0500 (Wed, 15 Sep 2004)
New Revision: 6291

Modified:
   trunk/gnue-common/src/apps/GBaseApp.py
Log:
fixed undefined variable


Modified: trunk/gnue-common/src/apps/GBaseApp.py
===================================================================
--- trunk/gnue-common/src/apps/GBaseApp.py      2004-09-15 21:20:10 UTC (rev 
6290)
+++ trunk/gnue-common/src/apps/GBaseApp.py      2004-09-15 21:52:31 UTC (rev 
6291)
@@ -84,7 +84,9 @@
 
   def __init__(self, connections=None, application='common', defaults=None):
 
-    sys.excepthook = self.excepthook
+    self.configDefaults = defaults 
+    
+    sys.excepthook = self.excepthook    
 
     # Basic options
     self._base_options = [
@@ -277,7 +279,7 @@
     # Read the config files
     if application:
       try:
-        self.configurationManager = GConfig.GConfig (application, defaults,
+        self.configurationManager = GConfig.GConfig (application, 
self.configDefaults,
                                               configFilename = self.CONFIGFILE)
       except ConfigParser.NoSectionError, msg:
         raise errors.AdminError, \
@@ -558,7 +560,7 @@
 
   def doHelpConfig(self):
     self.printHelpHeader()
-    print GConfig.printableConfigOptions(defaults)
+    print GConfig.printableConfigOptions(self.configDefaults)
     sys.exit()
 
 





reply via email to

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