changeset 262:438f6ce81e3d

Fix don't crash when adding a project view got renamed to frame
author Björn Ricks <bjoern.ricks@intevation.de>
date Thu, 11 Apr 2013 12:07:16 +0200
parents cf905ed23de0
children 077c2ce02f93
files getan/states.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/getan/states.py	Thu Apr 11 12:06:35 2013 +0200
+++ b/getan/states.py	Thu Apr 11 12:07:16 2013 +0200
@@ -623,7 +623,7 @@
 
     def __init__(self, controller, view):
         super(AlterProjectState, self).__init__(controller, view, None,
-                controller.view.view.get_footer())
+                controller.view.get_frame().get_footer())
 
     def exit(self):
         self.controller.view.set_footer_text(self.msg('choose_proj'), 'question')
@@ -664,7 +664,7 @@
         controller.view.set_footer_text(self.msg('proj_description'),
                                              'question', edit=True)
         super(AddProjectDescriptionState, self).__init__(controller, view)
-        self.controller.view.view.set_focus('footer')
+        self.controller.view.set_focus('footer')
         self.key = key
 
     def enter(self):
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)