def cmd_vars(self, *args):
        '''-2|vars|Show variables'''
        print ("variables\r\n" + "-" * 79)
        for i, j in self.configvars.items():
            value = self.parfmt(repr(getattr(self, j)), 52)
            print ("| %20s | %52s |" % (i, value[0]))
            for k in value[1:]: print ("| %20s | %52s |" % ("", k))
            if len(value) > 1:
                print("| %20s | %52s |" % ("", ""))
        print ("-" * 79)
dataset/ETHPy150Open uwdata/termite-visualizations/web2py/scripts/cpdb.py/console.cmd_vars/original