|
|
@ -338,8 +338,14 @@ storage of variables templates")%location
|
|
|
|
|
|
|
|
|
|
|
|
vname - имя переменной
|
|
|
|
vname - имя переменной
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
if hasattr(self, vname):
|
|
|
|
if not hasattr(self, vname):
|
|
|
|
return getattr(self, vname).service.lower()
|
|
|
|
try:
|
|
|
|
|
|
|
|
self.Get(vname)
|
|
|
|
|
|
|
|
except self.DataVarsError, e:
|
|
|
|
|
|
|
|
print _("Not found template variable %s")%vname
|
|
|
|
|
|
|
|
print e
|
|
|
|
|
|
|
|
cl_overriding.exit(1)
|
|
|
|
|
|
|
|
return getattr(self, vname).service.lower()
|
|
|
|
|
|
|
|
|
|
|
|
def __writeVarValue(self, vname, val, location, header):
|
|
|
|
def __writeVarValue(self, vname, val, location, header):
|
|
|
|
'''Записать значение в calculate.ini
|
|
|
|
'''Записать значение в calculate.ini
|
|
|
|