modified: di_dialog.py

modified:   di_main.py
This commit is contained in:
fling
2011-09-22 14:14:02 +08:00
parent 7bb9f730c6
commit d2fae07287
2 changed files with 9 additions and 3 deletions

View File

@@ -44,7 +44,8 @@ class SerialNumber(Dialog):
self.width=width
def set_data(self):
s,value=Dialog.dialog.inputbox(self.text,self.height,self.width,title='serial number',clear=1)
s,value=Dialog.dialog.inputbox(text=self.text,height=self.height,width=self.width,
init=getattr(ri_data.SerialNumber,'value'),title='serial number',clear=1)
if s == 0:
ri_data.SerialNumber.value=value
return s
@@ -298,8 +299,10 @@ class Network(Dialog):
if count < 0 or count > len(list) - 1:
break
elif s == 0 and ri_data.Network.configuration == 'dynamic':
s = self.set_network('hostname')
else:
self.set_network('hostname')
return s
return s
class Group(Dialog):
@@ -406,3 +409,6 @@ class Prepar_installation(Dialog):
return s
else:
return s
#N=Network(20,50)
#N.set_data()

View File

@@ -17,7 +17,7 @@ di_dialog.Prepar_installation(40,100)
list=['welcome','raid','mountpoint','serialnumber','network','group','service','information']
if len(di_dialog.Raid.raid_raw_init()) < 3:
del list[1]
del list[1]
count=0
while True :