[PATCH] repository/Base.py: Fix regression (UIBase is no more)

Sebastian Spaeth Sebastian at SSpaeth.de
Tue Mar 1 14:08:38 GMT 2011


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 <Sebastian at SSpaeth.de>
---
This fixes the stable branch regression and should be included in the next point release.
The error that hex reported will of course still occur.

 offlineimap/repository/Base.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/offlineimap/repository/Base.py b/offlineimap/repository/Base.py
index 98add53..39e490b 100644
--- a/offlineimap/repository/Base.py
+++ b/offlineimap/repository/Base.py
@@ -167,7 +167,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())
 
         #
-- 
1.7.1





More information about the OfflineIMAP-project mailing list