changeset 268:06157568d287

Use kwarg for edit and boolean instead of int
author Björn Ricks <bjoern.ricks@intevation.de>
date Thu, 11 Apr 2013 12:42:35 +0200
parents 9fce005e5fc6
children e360277c421b
files getan/states.py
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/getan/states.py	Thu Apr 11 12:41:53 2013 +0200
+++ b/getan/states.py	Thu Apr 11 12:42:35 2013 +0200
@@ -627,7 +627,8 @@
         self.controller.view.set_focus('footer')
 
     def exit(self):
-        self.controller.view.set_footer_text(self.msg('choose_proj'), 'question')
+        self.controller.view.set_footer_text(self.msg('choose_proj'),
+                'question')
         self.set_next_state(PausedProjectsState(self.controller, self.view))
         return True
 
@@ -644,8 +645,8 @@
     }
 
     def __init__(self, controller, view):
-        controller.view.set_footer_text(self.msg('proj_key'),
-                                             'question', 1)
+        controller.view.set_footer_text(self.msg('proj_key'), 'question',
+                edit=True)
         super(AddProjectKeyState, self).__init__(controller, view)
         self.view.frame.set_focus('footer')
 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)