- Forces relations to have correct attribute names

git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@296 014f5005-505e-4b48-8d0a-63407b615a7c
This commit is contained in:
LtWorf
2011-04-01 07:06:08 +00:00
parent dfb3f19acf
commit 3ca26b10c6
4 changed files with 34 additions and 4 deletions

View File

@@ -24,6 +24,7 @@ import logging
import os.path
import os
import sys
import curses
from relational import relation, parser, rtypes
@@ -261,6 +262,17 @@ def exec_query(command):
print e
def main(files=[]):
import locale
locale.setlocale(locale.LC_ALL, '')
code = locale.getpreferredencoding()
print curses.can_change_color()
curses.color_pair(curses.A_BOLD)
print "> ; Type HELP to get the HELP"
print "> ; Completion is activated using the tab (if supported by the terminal)"
@@ -285,4 +297,5 @@ def main(files=[]):
if __name__ == "__main__":
main()