3142: To allow backups into GRAMPS XML format without Proxy or Living filters; added two config settings for quick-backup dir and filename pattern; added dbstate.db_name

svn: r15644
This commit is contained in:
Doug Blank
2010-07-22 01:50:00 +00:00
parent ed3bd66d0d
commit 59403835fe
3 changed files with 146 additions and 0 deletions

View File

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