String representation of a Folder is its name

This enables us to just use the folder instance in the ui output and get
a name rather than having to call getname() all the time.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Sebastian Spaeth 2011-03-06 20:03:05 +01:00 committed by Nicolas Sebrecht
parent 3eee821382
commit ab1df868c2

View File

@ -31,6 +31,9 @@ class BaseFolder:
"""Returns name"""
return self.name
def __str__(self):
return self.name
def suggeststhreads(self):
"""Returns true if this folder suggests using threads for actions;
false otherwise. Probably only IMAP will return true."""