Fix get_dbname method when called from CLI and remove redundant code

svn: r15953
This commit is contained in:
Nick Hall
2010-10-04 20:41:16 +00:00
parent b733d9e306
commit 280db79074
2 changed files with 1 additions and 14 deletions

View File

@ -187,7 +187,6 @@ class CLIManager(object):
"""
def __init__(self, dbstate, setloader):
self.dbstate = dbstate
self.db_name = None
if setloader:
self.db_loader = CLIDbLoader(self.dbstate)
else:
@ -250,7 +249,7 @@ class CLIManager(object):
if filename[-1] == os.path.sep:
filename = filename[:-1]
name = os.path.basename(filename)
self.db_name = title
self.dbstate.db.db_name = title
if title:
name = title