[PATCH 3/4] Make str() of Repository() be its name
Sebastian Spaeth
Sebastian at SSpaeth.de
Wed Apr 27 11:15:51 BST 2011
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 <Sebastian at SSpaeth.de>
---
offlineimap/repository/Base.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
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
--
1.7.4.1
More information about the OfflineIMAP-project
mailing list