[Getan-commits] [PATCH 21 of 32] Allow empty descriptions for project entires
Wald Commits
scm-commit at wald.intevation.org
Fri Oct 11 14:34:05 CEST 2013
# HG changeset patch
# User Björn Ricks <bjoern.ricks at intevation.de>
# Date 1381486693 -7200
# Node ID b9fcd8771c8583309221be328a64907b04c587e2
# Parent 8f89fd3512251a8ba4846d5aa35b894ba8f768fc
Allow empty descriptions for project entires
diff -r 8f89fd351225 -r b9fcd8771c85 getan/controller.py
--- 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()
diff -r 8f89fd351225 -r b9fcd8771c85 getan/states.py
--- 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')
More information about the Getan-commits
mailing list