From d05162675c62277f3197ccc515bcf965be9308fc Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Tue, 1 Mar 2011 15:08:38 +0100 Subject: [PATCH] repository/Base.py: Fix regression (UIBase is no more) Commit e506442996f1a4 changed getglobalui() back to UIBase.getglobalui() although the import had changed earlier, causing a regression. Fix this by using the correct and current way of calling the ui. Signed-off-by: Sebastian Spaeth Signed-off-by: Nicolas Sebrecht --- Changelog.draft.rst | 2 ++ offlineimap/repository/Base.py | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Changelog.draft.rst b/Changelog.draft.rst index 8b599f9..d9977a2 100644 --- a/Changelog.draft.rst +++ b/Changelog.draft.rst @@ -19,6 +19,8 @@ Changes Bug Fixes --------- +* Fix regression (UIBase is no more). + Pending for the next major release ================================== diff --git a/offlineimap/repository/Base.py b/offlineimap/repository/Base.py index 98add53..7e1dd4d 100644 --- a/offlineimap/repository/Base.py +++ b/offlineimap/repository/Base.py @@ -19,7 +19,6 @@ from offlineimap import CustomConfig from offlineimap.ui import getglobalui import os.path -import sys import traceback def LoadRepository(name, account, reqtype): @@ -167,7 +166,7 @@ class BaseRepository(CustomConfig.ConfigHelperMixin): except (KeyboardInterrupt): raise except: - UIBase.getglobalui().warn("ERROR Attempting to make folder " \ + getglobalui().warn("ERROR Attempting to create folder " \ + key + ":" +traceback.format_exc()) #