|
|
|
@ -2240,15 +2240,18 @@ class DataVars:
|
|
|
|
|
mlen_mode=len(mode)
|
|
|
|
|
plist=var.keys()
|
|
|
|
|
plist.sort()
|
|
|
|
|
br = cl_utils.fillstr("-",mlen_name) + " " +\
|
|
|
|
|
cl_utils.fillstr("-",mlen_mode) + " " +\
|
|
|
|
|
cl_utils.fillstr("-",mlen_type) + " " +\
|
|
|
|
|
cl_utils.fillstr("-",10)
|
|
|
|
|
|
|
|
|
|
print "The list of variables:"
|
|
|
|
|
print "var name".center(mlen_name),\
|
|
|
|
|
"Mode",\
|
|
|
|
|
"Type".center(mlen_type),\
|
|
|
|
|
"Value"
|
|
|
|
|
print cl_utils.fillstr("-",mlen_name),\
|
|
|
|
|
cl_utils.fillstr("-",mlen_mode),\
|
|
|
|
|
cl_utils.fillstr("-",mlen_type),\
|
|
|
|
|
cl_utils.fillstr("-",10)
|
|
|
|
|
|
|
|
|
|
print br
|
|
|
|
|
for i in plist:
|
|
|
|
|
if var[i].v_value is None and var[i].v_printval is None:
|
|
|
|
|
continue
|
|
|
|
@ -2260,10 +2263,7 @@ class DataVars:
|
|
|
|
|
continue
|
|
|
|
|
cl_utils.columnWrite( i, mlen_name, var[i].v_mode.lower(),
|
|
|
|
|
mlen_mode, str(var[i].v_type), mlen_type, p_val)
|
|
|
|
|
print cl_utils.fillstr("-",mlen_name),\
|
|
|
|
|
cl_utils.fillstr("-",mlen_mode),\
|
|
|
|
|
cl_utils.fillstr("-",mlen_type),\
|
|
|
|
|
cl_utils.fillstr("-",10)
|
|
|
|
|
print br
|
|
|
|
|
|
|
|
|
|
#объеденить два объекта с переменными
|
|
|
|
|
def joinVars(self, objvars, force=False):
|
|
|
|
|