changeset 395:bb434c623bca

about to give up on overriding __getattr__ in options
author catherine@DellZilla
date Wed, 07 Oct 2009 13:23:34 -0400
parents 58e6d66794b0
children 9c724e555c91
files sqlpython/sqlpyPlus.py sqlpython/sqlpython.py
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sqlpython/sqlpyPlus.py	Wed Oct 07 12:00:55 2009 -0400
+++ b/sqlpython/sqlpyPlus.py	Wed Oct 07 13:23:34 2009 -0400
@@ -1488,7 +1488,7 @@
         if hasattr(opts, 'immediate') and opts.immediate:
             if hasattr(opts, 'all') and opts.all:
                 self.perror('Cannot combine --all with --immediate - operation takes too long')
-                return []
+                raise StopIteration
             else:
                 self.pfeedback('Refreshing metadata for %s...' % username)
                 schemas.refresh_one(username)
--- a/sqlpython/sqlpython.py	Wed Oct 07 12:00:55 2009 -0400
+++ b/sqlpython/sqlpython.py	Wed Oct 07 13:23:34 2009 -0400
@@ -12,6 +12,8 @@
 import sqlalchemy, pyparsing, schemagroup
 __version__ = '1.6.8'    
 
+cmd2.undefined_options_are_None = True
+
 class Parser(object):
     comment_def = "--" + ~ ('-' + pyparsing.CaselessKeyword('begin')) + pyparsing.ZeroOrMore(pyparsing.CharsNotIn("\n"))    
     def __init__(self, scanner, retainSeparator=True):