Mercurial > sqlpython
changeset 442:5497ae28bc70
hg working again
author | catherine@dellzilla |
---|---|
date | Mon, 01 Feb 2010 16:48:00 -0500 |
parents | da332a670378 |
children | cd015f2bff44 |
files | sqlpython/sqlpyPlus.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/sqlpython/sqlpyPlus.py Mon Feb 01 16:32:13 2010 -0500 +++ b/sqlpython/sqlpyPlus.py Mon Feb 01 16:48:00 2010 -0500 @@ -833,13 +833,14 @@ if opts.get('lines'): txt = self._with_line_numbers(txt) if opts.dump: - path = os.path.join(description.owner.lower(), description.type.lower()) \ + owner = description.owner or self.current_instance.username + path = os.path.join(owner.lower(), description.type.lower()) \ .replace(' ', '_') try: os.makedirs(path) except OSError: pass - filename = os.path.join(path, '%s.sql' % description.name.lower()) + filename = os.path.join(path, '%s.sql' % description.unqualified_name.lower()) self.stdout = open(filename, 'w') if opts.get('num') is not None: txt = txt.splitlines()