[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
r5141 - trunk/gnue-common/src/apps
From: |
jamest |
Subject: |
r5141 - trunk/gnue-common/src/apps |
Date: |
Sun, 22 Feb 2004 16:27:05 -0600 (CST) |
Author: jamest
Date: 2004-02-22 16:27:04 -0600 (Sun, 22 Feb 2004)
New Revision: 5141
Modified:
trunk/gnue-common/src/apps/GConfig.py
Log:
don't error out when an apps config section is missing
Modified: trunk/gnue-common/src/apps/GConfig.py
===================================================================
--- trunk/gnue-common/src/apps/GConfig.py 2004-02-21 16:32:50 UTC (rev
5140)
+++ trunk/gnue-common/src/apps/GConfig.py 2004-02-22 22:27:04 UTC (rev
5141)
@@ -191,7 +191,7 @@
typecasts = self.__typecasts = {}
# FIXME: I don't know what kind of elements are stored in 'defaults'.
# add a correct iteration over the "defaults-dictionary"!
- if len (defaults) > 0:
+ if defaults and (len (defaults) > 0):
for f in defaults:
try:
typecasts[f['Name'].lower()] = f['Typecast']
@@ -235,6 +235,7 @@
output += '='*outputWidth+"\n"
nameString="Name:%s"%option['Name']
defaultString="Default Value:%s" % option['Default']
+ print 1
output += "%s%s%s\n" %(nameString,'
'*(outputWidth-len(nameString+defaultString)),defaultString)
output += "%s\n" % lineWrap(option['Description'],outputWidth)
else:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- r5141 - trunk/gnue-common/src/apps,
jamest <=