Rename template directory to system. Add pass_action condition.

master3.3
Mike Hiretsky 14 years ago
parent 3185eda601
commit 0c335b0ecd

@ -94,6 +94,7 @@ class cl_install(color_print):
def applyTemplatesForSystem(self):
"""Apply templates for root of system."""
self.clVars.Set("cl_root_path","/", True)
self.clVars.Set("cl_pass_action", "system", True)
self.clTempl = template(self.clVars)
dirsFiles = self.clTempl.applyTemplates()
if self.clTempl.getError():
@ -119,7 +120,7 @@ class cl_install(color_print):
self.printSUCCESS(_("Machine hardware name")+": %s"%
self.clVars.Get('os_arch_machine'))
self.printSUCCESS(_("Quantity processors")+": %s(var name)"%
self.clVars.Get('hr_cpus'))
self.clVars.Get('hr_cpu_num'))
self.printSUCCESS(_("Videocard")+": %s"%
'<needed>')
self.printSUCCESS(_("Screen resolution")+": %s"%
@ -178,6 +179,7 @@ class cl_install(color_print):
def applyTemplates(self,directory):
"""Apply templates for root of system."""
self.clVars.Set("cl_root_path",directory, True)
self.clVars.Set("cl_pass_action", "system", True)
self.clTempl = template(self.clVars)
dirsFiles = self.clTempl.applyTemplates()
if self.clTempl.getError():

@ -103,3 +103,21 @@ class Data:
# kernel resume
os_kernel_resume = {}
# system image for installation
cl_image = {}
# path which contains images
cl_image_path = {'value':['/var/calculate/remote/linux',
'/var/calculate/linux',
'/usr/calculate/share/linux']}
# DISTFILES value
cl_distfiles_path = {'mode':'w',
'value':'/var/calculate/remote/distfiles'}
# PKGDIR value
cl_pkgdir_path = {'mode':'w'}
# LINGUAS value
os_linguas = {'mode':'w'}

Loading…
Cancel
Save