Changes to allow a QML interface:

* a const to launch it
 * fix an error in obtaining dbname
 * refractor pieces to allow reuse


svn: r16504
This commit is contained in:
Benny Malengier
2011-01-30 16:28:54 +00:00
parent 9d79439ead
commit 9a2fd50642
6 changed files with 63 additions and 31 deletions

View File

@ -214,7 +214,6 @@ class DbBsddb(DbBsddbRead, DbWriteBase, UpdateCallback):
self.secondary_connected = False
self.has_changed = False
self.brief_name = None
self.db_name = None
def catch_db_error(func):
"""
@ -1800,12 +1799,6 @@ class DbBsddb(DbBsddbRead, DbWriteBase, UpdateCallback):
"""
return self.brief_name
def get_dbname(self):
"""
In BSDDB, we use the file directory name as the unique ID for
this database on this computer.
"""
return self.db_name
#-------------------------------------------------------------------------
#