# HG changeset patch # User Björn Ricks # Date 1354802080 -3600 # Node ID 3f547b1d8322f2b2d851299f3a1087edac7640dc # Parent 626d50342094ef0628e938bbde89982586d63734 Print indent of the project in the project list. diff -r 626d50342094 -r 3f547b1d8322 getan/view.py --- 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()