Mercurial > getan
changeset 159:3f547b1d8322
Print indent of the project in the project list.
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Thu, 06 Dec 2012 14:54:40 +0100 |
parents | 626d50342094 |
children | 04ac384a9525 |
files | getan/view.py |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/getan/view.py Thu Dec 06 14:53:18 2012 +0100 +++ b/getan/view.py Thu Dec 06 14:54:40 2012 +0100 @@ -147,9 +147,11 @@ def update(self): logger.debug("Update ProjectNode '%s'" % self.item.key) time_str = self._get_formatted_time() - description = urwid.Text('%s %s' % (self.item.key, self.item.desc), - wrap='clip') time = urwid.Text('%s (%s)' % (self.mode[1], time_str)) + description = urwid.Text([' ' * self.indent, + ('project_key', self.item.key), + (' '), + (self.item.desc)]) self.widget = urwid.AttrWrap(urwid.Columns([description, time]),None) self._w = self.widget self.update_w()