From fdfb7cb7f11aa32f60c55d3c99fc23d0fb232018 Mon Sep 17 00:00:00 2001 From: Joscha Date: Mon, 23 May 2016 16:22:47 +0200 Subject: [PATCH] Remove special formatting function --- yaboli/session.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/yaboli/session.py b/yaboli/session.py index e77a56d..177a379 100644 --- a/yaboli/session.py +++ b/yaboli/session.py @@ -61,27 +61,6 @@ class Session(): return "".join(c for c in self.name if not c in ",.!?;&<'\"" and not c.isspace()).lower() - def listable(self, width): - """ - listable(width): -> prefixes, name - - Prefixes and name which together are characters long or shorter. - """ - - prefixes = "" - if self.session_type() == "account": - prefixes += "*" - if self.is_manager(): - prefixes += "m" - if self.is_staff(): - prefixes += "s" - - name = self.name() - if len(prefixes + name) > width: - name = name[:width - len(prefixes) - 1] + "…" - - return prefixes, name - def is_staff(self): """ is_staff() -> bool