Fix refilling empty variable.

develop
Mike Hiretsky 14 years ago
parent b5ea697319
commit d8c8c1d25b

@ -34,7 +34,7 @@ class var:
#(Main, Builder, Client итд)
service = None
# значение переменной
value = ""
value = None
# режим записи (атрибут mode)
mode = "r"
# переменная для внутреннего использования (official)
@ -80,9 +80,9 @@ class var:
if self.dynamic:
self.value = self.Fill()
return self.value
if not self.value:
if self.value is None:
if self.countFill>0:
return self.value
return ""
self.countFill += 1
self.value = self.Fill()
if self.dependValues and self.is_update():
@ -97,9 +97,10 @@ class var:
def Fill(self):
"""Заполнение переменной в далнейшем заменяем методом заполнения"""
if self.value is None:
self.value = ""
return self.value
class DataVars(object):
"""Класс хранения переменных шаблонов"""

@ -61,7 +61,7 @@ class Data:
"/var/calculate/templates",
"/var/calculate/remote/templates"]}
# paths to clt-template files
cl_template_clt_path = {'value':""}
cl_template_clt_path = {}
# locale (at example: ru_RU.UTF-8)
os_locale_locale = {}
# full language (at example: ru_RU)

Loading…
Cancel
Save