|
|
@ -26,9 +26,9 @@ from calculate.lib.utils.files import listDirectory,process,PIPE
|
|
|
|
from calculate.lib.cl_lang import setLocalTranslate
|
|
|
|
from calculate.lib.cl_lang import setLocalTranslate
|
|
|
|
setLocalTranslate('cl_lib3',sys.modules[__name__])
|
|
|
|
setLocalTranslate('cl_lib3',sys.modules[__name__])
|
|
|
|
|
|
|
|
|
|
|
|
_envData = [('system', '/etc/calculate/calculate3.env'),
|
|
|
|
_envData = [('system', '/etc/calculate/calculate.env'),
|
|
|
|
('local', '/var/calculate/calculate3.env'),
|
|
|
|
('local', '/var/calculate/calculate.env'),
|
|
|
|
('remote', '/var/calculate/remote/calculate3.env')]
|
|
|
|
('remote', '/var/calculate/remote/calculate.env')]
|
|
|
|
|
|
|
|
|
|
|
|
class VariableClEnvData(TableVariable):
|
|
|
|
class VariableClEnvData(TableVariable):
|
|
|
|
"""
|
|
|
|
"""
|
|
|
@ -169,12 +169,6 @@ class VariableClMerges(Variable):
|
|
|
|
type = 'list'
|
|
|
|
type = 'list'
|
|
|
|
|
|
|
|
|
|
|
|
def get(self):
|
|
|
|
def get(self):
|
|
|
|
try:
|
|
|
|
|
|
|
|
config = cl_template.iniParser('/etc/calculate/calculate2.env')
|
|
|
|
|
|
|
|
val = config.getVar('main','cl_merges')
|
|
|
|
|
|
|
|
return val.encode('utf-8').split(',')
|
|
|
|
|
|
|
|
except:
|
|
|
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
return []
|
|
|
|
return []
|
|
|
|
|
|
|
|
|
|
|
|
def set(self,value):
|
|
|
|
def set(self,value):
|
|
|
@ -187,15 +181,6 @@ class VariableClAutoupdateSet(Variable):
|
|
|
|
type = 'boolean'
|
|
|
|
type = 'boolean'
|
|
|
|
value = 'off'
|
|
|
|
value = 'off'
|
|
|
|
|
|
|
|
|
|
|
|
def get(self):
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
|
|
|
config = cl_template.iniParser('/etc/calculate/calculate2.env')
|
|
|
|
|
|
|
|
val = config.getVar('main','cl_autoupdate_set')
|
|
|
|
|
|
|
|
return val.encode('utf-8')
|
|
|
|
|
|
|
|
except:
|
|
|
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
return []
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class VariableClWsdl(Variable):
|
|
|
|
class VariableClWsdl(Variable):
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
Packages with wsdl
|
|
|
|
Packages with wsdl
|
|
|
|