From 3e5d6f54501ac7335ad81836914454c10211b4f7 Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Wed, 27 Apr 2011 12:15:51 +0200 Subject: [PATCH] Make str() of Repository() be its name So we can simply hand a repository instance to error messages rather than having to call Repository().getname() all the time. This is not used yet. Signed-off-by: Sebastian Spaeth Signed-off-by: Nicolas Sebrecht --- offlineimap/repository/Base.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/offlineimap/repository/Base.py b/offlineimap/repository/Base.py index 482cc2d..594f864 100644 --- a/offlineimap/repository/Base.py +++ b/offlineimap/repository/Base.py @@ -72,6 +72,9 @@ class BaseRepository(CustomConfig.ConfigHelperMixin): def getname(self): return self.name + def __str__(self): + return self.name + def getuiddir(self): return self.uiddir