Mercurial > getan
changeset 87:0e5b6826a4ef
Use footer of EntryList to display the editable description of an entry
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Mon, 30 May 2011 15:38:35 +0200 (2011-05-30) |
parents | c9684f6d54ea |
children | 6dc52940dde0 |
files | ChangeLog getan/states.py |
diffstat | 2 files changed, 12 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Mon May 30 15:34:55 2011 +0200 +++ b/ChangeLog Mon May 30 15:38:35 2011 +0200 @@ -1,3 +1,10 @@ +2011-05-30 Björn Ricks <bjoern.ricks@intevation.de> + + * getan/states.py: Use footer of EntryList to display + the editable description of an entry and not the general + footer to be able to edit the desciption while running a + project. + 2011-05-30 Björn Ricks <bjoern.ricks@intevation.de> * getan/view.py (ListWidget): Add new node_in_focus
--- a/getan/states.py Mon May 30 15:34:55 2011 +0200 +++ b/getan/states.py Mon May 30 15:38:35 2011 +0200 @@ -548,10 +548,10 @@ } def __init__(self, state, controller, view, entry): - controller.view.set_footer_text(self.msg('edit_entry'), - 'question', True) + view.set_footer_text(self.msg('edit_entry'), + 'question', True) super(EditEntryState, self).__init__(controller, view, - None, controller.view.view.get_footer()) + None, view.footer) self.footer.set_edit_text(entry.desc) self.footer.set_edit_pos(len(self.footer.edit_text)) self.view.frame.set_focus('footer') @@ -566,10 +566,11 @@ entry = self.entry entry.desc = entry_desc self.controller.update_entry(entry) + self.view.node_in_focus().update() return self.exit() def exit(self): - self.controller.view.set_footer_text("", 'question', False) + self.view.set_footer_text("", 'entry_footer', False) return DefaultEntryListState(self.state, self.controller, self.view)