[PATCH] Fix sqlite upgrade code to use correct API call

Sebastian Spaeth Sebastian at SSpaeth.de
Mon Aug 29 13:26:49 BST 2011


We were using self.getfolderbasename(self.name) but the API is simply
getfolderbasename(). Fix this glitch.

Signed-off-by: Sebastian Spaeth <Sebastian at SSpaeth.de>
---
 offlineimap/folder/LocalStatusSQLite.py |    5 +++--
 1 files 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 '
-- 
1.7.4.1





More information about the OfflineIMAP-project mailing list