summaryrefslogtreecommitdiffstats
path: root/installclass.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-05-03 19:14:22 +0000
committerMatt Wilson <msw@redhat.com>2000-05-03 19:14:22 +0000
commit8933059128cb9274b188561815e62b1b933768b9 (patch)
tree279c23821a75a8cdeaf88b38eb5a6639d25767e5 /installclass.py
parent68fe5b4e13c7f1cb650b4f09206679184766a5c2 (diff)
downloadanaconda-8933059128cb9274b188561815e62b1b933768b9.tar.gz
anaconda-8933059128cb9274b188561815e62b1b933768b9.tar.xz
anaconda-8933059128cb9274b188561815e62b1b933768b9.zip
don't load non .py files, pass back the pixmap name, set defaults for name and pixmap in baseinstallclass
Diffstat (limited to 'installclass.py')
-rw-r--r--installclass.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/installclass.py b/installclass.py
index 9c9af64f2..dd7e5b3ad 100644
--- a/installclass.py
+++ b/installclass.py
@@ -219,6 +219,8 @@ class BaseInstallClass:
self.earlySwapOn = 0
self.desktop = ""
self.raidList = []
+ self.name = ""
+ self.pixmap = ""
if iutil.getArch () == "alpha":
self.addToSkipList("bootdisk")
@@ -265,6 +267,9 @@ def availableClasses():
list = []
for file in files:
if file[0] == '.': continue
+ if len (file) >= 3:
+ if file[-3:] != ".py":
+ continue
mainName = string.split(file, ".")[0]
if done.has_key(mainName): continue
done[mainName] = 1
@@ -278,7 +283,7 @@ def availableClasses():
sortOrder = obj.sortPriority
else:
sortOrder = 0
- list.append(((obj.name, obj, None), sortOrder))
+ list.append(((obj.name, obj, obj.pixmap), sortOrder))
list.sort(ordering)
for (item, priority) in list: