From c8acae966409c1a46816202a928d7bfbfe864b87 Mon Sep 17 00:00:00 2001 From: mhiretskiy Date: Tue, 22 Jul 2008 13:56:56 +0000 Subject: [PATCH] git-svn-id: http://svn.calculate.ru/calculate2/calculate-lib/trunk@112 c91db197-33c1-4113-bf15-f8a5c547ca64 --- pym/cl_base.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pym/cl_base.py b/pym/cl_base.py index b537534..b36b210 100644 --- a/pym/cl_base.py +++ b/pym/cl_base.py @@ -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):