changeset 213:ea7978e43ea7

Remove update_view from GetanView
author Björn Ricks <bjoern.ricks@intevation.de>
date Fri, 05 Apr 2013 19:56:09 +0200
parents 9badfbb04ac9
children 6d5c8e205872
files getan/view.py
diffstat 1 files changed, 2 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/getan/view.py	Fri Apr 05 19:54:48 2013 +0200
+++ b/getan/view.py	Fri Apr 05 19:56:09 2013 +0200
@@ -452,15 +452,9 @@
         self.footer = urwid.AttrWrap(urwid.Text(_('Choose a project:')),
                                        'question')
         self.col_list = self.columns.widget_list
-        view          = urwid.AttrWrap(self.columns, 'body')
-        self.view     = urwid.Frame(view, header=self.header,footer=self.footer)
-        self.state    = PausedProjectsState(controller, self.proj_list)
-
-    def update_view(self):
-        logger.debug("GetanView: update view now.")
         view = urwid.AttrWrap(self.columns, 'body')
-        self.view.set_body(view)
-        self.controller.loop.draw_screen()
+        self.view = urwid.Frame(view, header=self.header,footer=self.footer)
+        self._w = self.view
 
     def get_frame(self):
         return self.view
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)