test close database

This commit is contained in:
Armin Köhler 2011-05-26 22:15:38 +02:00
parent c435127585
commit b5c392112b
2 changed files with 6 additions and 1 deletions

View File

@ -324,7 +324,6 @@ class BibleUpgradeForm(OpenLPWizard):
oldbible = OldBibleDB(self.mediaItem, path=self.path,
file=filename)
oldname = oldbible.get_name()
oldbible.close_cursor()
if not version_name:
critical_error_message_box(UiStrings().EmptyField,
translate('BiblesPlugin.UpgradeWizardForm',

View File

@ -499,6 +499,12 @@ class BibleDB(QtCore.QObject, Manager):
return True
return False
def close_database(self):
"""
Close database connection.
"""
self.session.close()
def dump_bible(self):
"""
Utility debugging method to dump the contents of a bible.