Mercurial > getan
changeset 170:fa3f6cd394db
Formatting
Add some newlines
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Mon, 10 Dec 2012 09:43:06 +0100 |
parents | d10a0e35b982 |
children | a34693c5905f |
files | getan/states.py |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/getan/states.py Mon Dec 10 09:33:40 2012 +0100 +++ b/getan/states.py Mon Dec 10 09:43:06 2012 +0100 @@ -68,6 +68,7 @@ self.controller.update_entries(self.view.item_in_focus()) return self + class PausedProjectsState(ProjectState): messages = { 'choose_proj': _('Choose a project: '), @@ -101,6 +102,7 @@ self.controller.start_project(proj) return RunningProjectsState(self.controller, self.view, proj) + class SelectProjectState(State): def __init__(self, controller, view): @@ -155,6 +157,7 @@ return self.select_project() return self + class ExitState(ProjectState): messages = { 'quit' : _(" Really quit? (y/n)"), @@ -564,8 +567,10 @@ self.set_project_footer() if num == 1: self.select_project() + return self + class CreateProjectState(HandleUserInputState): messages = { @@ -580,6 +585,7 @@ self.controller.view.set_footer_text(self.msg('choose_proj'), 'question') return PausedProjectsState(self.controller, self.view) + class AddProjectNameState(CreateProjectState): messages = { 'choose_proj': _(' Choose a project.'), @@ -620,6 +626,7 @@ return AddProjectDescriptionState(self.controller, self.view, self.project, key) + class AddProjectDescriptionState(CreateProjectState): messages = { 'proj_description': _('Insert a description for project: '),