From f0869e5c0f36ed8cb19b15bcfc440c0fac4dd586 Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Mon, 29 Aug 2011 14:26:49 +0200 Subject: [PATCH] Fix sqlite upgrade code to use correct API call We were using self.getfolderbasename(self.name) but the API is simply getfolderbasename(). Fix this glitch. Signed-off-by: Sebastian Spaeth Signed-off-by: Nicolas Sebrecht --- offlineimap/folder/LocalStatusSQLite.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/offlineimap/folder/LocalStatusSQLite.py b/offlineimap/folder/LocalStatusSQLite.py index eae5d0c..bd38930 100644 --- a/offlineimap/folder/LocalStatusSQLite.py +++ b/offlineimap/folder/LocalStatusSQLite.py @@ -111,7 +111,8 @@ class LocalStatusSQLiteFolder(LocalStatusFolder): if hasattr(self, 'connection'): self.connection.close() #close old connections first - self.connection = sqlite.connect(self.filename, check_same_thread = False) + self.connection = sqlite.connect(self.filename, + check_same_thread = False) if from_ver == 0: # from_ver==0: no db existent: plain text migration? @@ -120,7 +121,7 @@ class LocalStatusSQLiteFolder(LocalStatusFolder): plaintextfilename = os.path.join( self.repository.account.getaccountmeta(), 'LocalStatus', - self.getfolderbasename(self.name)) + self.getfolderbasename()) # MIGRATE from plaintext if needed if os.path.exists(plaintextfilename): self.ui._msg('Migrating LocalStatus cache from plain text '