Mercurial > sqlpython
diff sqlpython.py @ 16:2776755a3a7e
beginning separation of cmd2
author | devlinjs@FA7CZA6N1254998.wrightpatterson.afmc.ds.af.mil |
---|---|
date | Wed, 19 Dec 2007 10:28:01 -0500 |
parents | f70cc3be6377 |
children | 1fb9f7dee7d8 |
line wrap: on
line diff
--- a/sqlpython.py Tue Dec 18 19:18:22 2007 -0500 +++ b/sqlpython.py Wed Dec 19 10:28:01 2007 -0500 @@ -8,18 +8,18 @@ # Best used with the companion modules sqlpyPlus and mysqlpy # See also http://twiki.cern.ch/twiki/bin/view/PSSGroup/SqlPython -import cmd,getpass,binascii,cx_Oracle,re +import cmd2,getpass,binascii,cx_Oracle,re import pexpecter # complication! separate sessions -> # separate transactions !!!!! # also: timeouts, other session failures -class sqlpython(cmd.Cmd): +class sqlpython(cmd2.Cmd): '''A python module to reproduce Oracle's command line with focus on customization and extention''' def __init__(self): - cmd.Cmd.__init__(self) + cmd2.Cmd.__init__(self) self.prompt = 'SQL.No_Connection> ' self.maxfetch = 1000 self.failoverSessions = []