|
@@ -30,10 +30,6 @@ class DatabaseException(Exception):
|
|
|
|
|
|
class Database(object):
|
|
class Database(object):
|
|
|
|
|
|
- #def __init__(self, dbver=None):
|
|
|
|
- # self._filtertags = []
|
|
|
|
- # self.dbver = dbver
|
|
|
|
-
|
|
|
|
def open(self, dbver=None):
|
|
def open(self, dbver=None):
|
|
"""
|
|
"""
|
|
Open the database, by calling the _open method of the
|
|
Open the database, by calling the _open method of the
|
|
@@ -44,7 +40,7 @@ class Database(object):
|
|
key = self.loadkey()
|
|
key = self.loadkey()
|
|
"""
|
|
"""
|
|
self._open()
|
|
self._open()
|
|
- enc = CryptoEngine.get(dbver=dbver)
|
|
|
|
|
|
+ enc = CryptoEngine.get()
|
|
key = self.loadkey()
|
|
key = self.loadkey()
|
|
if key is not None:
|
|
if key is not None:
|
|
enc.set_cryptedkey(key)
|
|
enc.set_cryptedkey(key)
|