modified: interface/ri_func_dep.py modified: interface/ri_inst_cli.py modified: interface/ri_inst_tk.py modified: interface/ri_oper.py modified: xml/interface.xml make tab equal 4 spaces
43 lines
943 B
Python
43 lines
943 B
Python
#!/usr/bin/python
|
|
# DESCRIPTION: display module for install (cli)
|
|
#
|
|
# SCRIPT NAME: ri_inst_cli.py
|
|
#
|
|
# MENTOR: Li Zhi
|
|
#
|
|
# AUTHOR: Ling Fen
|
|
#
|
|
# EMAIL: fling@linx-info.com
|
|
#
|
|
# DATE: 2010-09-20
|
|
#
|
|
# HISTORY:
|
|
# REVISOR DATE MODIFICATION
|
|
# Ling Fen 2010-09-04 create
|
|
#
|
|
|
|
from ri_oper import language, Rate
|
|
def set_task(task_name):
|
|
print task_name
|
|
|
|
def set_sub_task(sub_task):
|
|
print sub_task
|
|
|
|
def set_task_scale():
|
|
print "%.2f" %float(Rate.value)
|
|
|
|
def set_task_over():
|
|
string = raw_input("Rocky system installation successfully, are your restart?[Y]")
|
|
if string.lower() == "y":
|
|
return True
|
|
return False
|
|
|
|
def root_destroy():
|
|
pass
|
|
|
|
def error(oper, ret):
|
|
print "%s:\n Error number: %d\n %s"%(oper.english_name, ret, oper.return_value[ret][0])
|
|
|
|
def start(func):
|
|
func()
|