diff getan/controller.py @ 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
parents 05cb2e7e705f
children 27fc5f43a69b
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()
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)