changeset 316:b9fcd8771c85

Allow empty descriptions for project entires
author Björn Ricks <bjoern.ricks@intevation.de>
date Fri, 11 Oct 2013 12:18:13 +0200 (2013-10-11)
parents 8f89fd351225
children dc7c1a894e21
files getan/controller.py getan/states.py
diffstat 2 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/getan/controller.py	Fri Oct 11 12:14:25 2013 +0200
+++ b/getan/controller.py	Fri Oct 11 12:18:13 2013 +0200
@@ -138,7 +138,8 @@
         self.view.set_footer_text(" Running on '%s'" % project.desc, 'running')
         logger.debug('All running projects: %r' % self.running)
 
-    def stop_project(self, desc='-no description-', display=True):
+    def stop_project(self, desc=None, display=True):
+        desc = desc or '-no description-'
         if not self.running:
             return
         project = self.running.pop()
--- a/getan/states.py	Fri Oct 11 12:14:25 2013 +0200
+++ b/getan/states.py	Fri Oct 11 12:18:13 2013 +0200
@@ -446,8 +446,6 @@
 
     def enter(self):
         text = self.footer.get_edit_text()
-        if text == '':
-            return True
         self.controller.stop_project(text)
         self.controller.view.set_footer_text(
             self.msg('choose_proj'), 'question')
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)