changeset 289:3cade02da892

replacing manual abbreviations with abbrev param
author catherine@Elli.myhome.westell.com
date Mon, 23 Mar 2009 08:36:02 -0400
parents 316abf2191a4
children 67ff100baeaa d79e885fa84f
files sqlpython/sqlpyPlus.py
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/sqlpython/sqlpyPlus.py	Fri Mar 20 09:47:22 2009 -0400
+++ b/sqlpython/sqlpyPlus.py	Mon Mar 23 08:36:02 2009 -0400
@@ -373,6 +373,7 @@
               
 class sqlpyPlus(sqlpython.sqlpython):
     defaultExtension = 'sql'
+    abbrev = True    
     sqlpython.sqlpython.shortcuts.update({':': 'setbind', 
                                           '\\': 'psql', 
                                           '@': '_load'})
@@ -860,7 +861,6 @@
             except IndexError:
                 pass
             return Cmd.do_show(self, arg)
-    do_sho = do_show
             
     @options([make_option('-d', '--dump', action='store_true', help='dump results to files'),
               make_option('-f', '--full', action='store_true', help='get dependent objects as well'),
@@ -970,7 +970,6 @@
                 self.stdout.write('Arguments to %s\n' % (packageObj_name))
                 sql = self.parsed(descQueries['PackageObjArgs'][0], terminator=arg.parsed.terminator or ';', suffix=arg.parsed.suffix)
                 self.do_select(sql, bindVarsIn={'package_name':object_name, 'owner':owner, 'object_name':packageObj_name})
-    do_desc = do_describe
 
     def do_deps(self, arg):
         target = arg.upper()
@@ -1261,8 +1260,6 @@
         else:
             if var in self.substvars:
                 print 'DEFINE %s = "%s" (%s)' % (var, self.substvars[var], type(self.substvars[var]))
-
-    do_def = do_define               
     
     def do_exec(self, arg):
         if arg.startswith(':'):