|
|
|
@ -1071,7 +1071,7 @@ class SimpleDataVars(object):
|
|
|
|
|
hr = kw['humanreadable']
|
|
|
|
|
return list(zip(*(self.Get(x, humanreadable=hr) for x in argvVarNames)))
|
|
|
|
|
else:
|
|
|
|
|
return list(zip(*map(self.Get, argvVarNames)))
|
|
|
|
|
return list(zip(*(self.Get(x) for x in argvVarNames)))
|
|
|
|
|
|
|
|
|
|
def select(self, *fields, **kw):
|
|
|
|
|
"""
|
|
|
|
@ -1870,8 +1870,8 @@ class DataVars(SimpleDataVars):
|
|
|
|
|
Вывести группу переменных
|
|
|
|
|
"""
|
|
|
|
|
print("=DEBUG.SET=")
|
|
|
|
|
for vname in sorted(filter(lambda x: x.lower() == x,
|
|
|
|
|
info._type_info.keys())):
|
|
|
|
|
for vname in sorted((x for x
|
|
|
|
|
in info._type_info.keys() if x.lower() == x)):
|
|
|
|
|
print("|", vname, "=", getattr(info, vname))
|
|
|
|
|
print("=DEBUG.DATAVARS=")
|
|
|
|
|
for vname in self.mapVarGroup.keys():
|
|
|
|
@ -1913,9 +1913,8 @@ class DataVars(SimpleDataVars):
|
|
|
|
|
if self.groups:
|
|
|
|
|
keys = self.mapVarGroup.keys()
|
|
|
|
|
else:
|
|
|
|
|
keys = sorted(filter(lambda x: x.lower() == x,
|
|
|
|
|
info._type_info.keys()))
|
|
|
|
|
varsByKeys = map(self.getInfo, keys)
|
|
|
|
|
keys = sorted([x for x in info._type_info.keys() if x.lower() == x])
|
|
|
|
|
varsByKeys = [self.getInfo(x) for x in keys]
|
|
|
|
|
groupVars = []
|
|
|
|
|
|
|
|
|
|
# invalidate default variables
|
|
|
|
@ -1996,15 +1995,15 @@ class DataVars(SimpleDataVars):
|
|
|
|
|
raise VariableError(uncomperr)
|
|
|
|
|
except (VariableError, DataVarsError) as e:
|
|
|
|
|
# assemble all variable errors
|
|
|
|
|
messages = e.message if type(e.message) == list \
|
|
|
|
|
messages = e if type(e) == list \
|
|
|
|
|
else [e]
|
|
|
|
|
mess = "\n".join((str(x) for x in self.plainList(*messages)))
|
|
|
|
|
mapError = {PasswordError: 'pwderror',
|
|
|
|
|
CommonVariableError: 'commonerror'}
|
|
|
|
|
for k, v in mapError.items():
|
|
|
|
|
if (isinstance(e, k) or type(e.message) == list and
|
|
|
|
|
if (isinstance(e, k) or type(e) == list and
|
|
|
|
|
all(isinstance(x, k) for x in
|
|
|
|
|
e.message)):
|
|
|
|
|
e)):
|
|
|
|
|
typeError = v
|
|
|
|
|
break
|
|
|
|
|
else:
|
|
|
|
@ -2038,6 +2037,6 @@ class DataVars(SimpleDataVars):
|
|
|
|
|
|
|
|
|
|
def printWrong(self, filt=lambda x: x):
|
|
|
|
|
print("!!!WRONG VARS!!!")
|
|
|
|
|
for i in sorted(filter(filt, self.allVars.keys())):
|
|
|
|
|
for i in sorted((x for x in self.allVars.keys() if filt(x))):
|
|
|
|
|
if self.getInfo(i).untrusted:
|
|
|
|
|
print("{0:<40} {1}".format(i, self.Get(i, True)))
|
|
|
|
|