[PATCHv2 2/3] Re: String representation of a Folder is its name
Nicolas Sebrecht
nicolas.s-dev at laposte.net
Sun Mar 6 17:07:10 GMT 2011
On Sun, Mar 06, 2011 at 09:52:02AM +0100, Sebastian Spaeth wrote:
>
> 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.
The line is too long.
> Signed-off-by: Sebastian Spaeth <Sebastian at SSpaeth.de>
> ---
> offlineimap/folder/Base.py | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/offlineimap/folder/Base.py b/offlineimap/folder/Base.py
> index ecdde7a..8e73868 100644
> --- a/offlineimap/folder/Base.py
> +++ b/offlineimap/folder/Base.py
> @@ -33,6 +33,9 @@ class BaseFolder:
> """Returns name"""
> return self.name
>
> + def __str__(self):
> + return self.name
> +
Where do we make use of this?
--
Nicolas Sebrecht
More information about the OfflineIMAP-project
mailing list