changeset 173:a5319bb1ac13

Rename CreateProjectState into AlterProjectState The AlterProjectState will be reused for changing an existing project.
author Björn Ricks <bjoern.ricks@intevation.de>
date Thu, 13 Dec 2012 09:00:09 +0100
parents b8abca7714fd
children 36b9f2d31810
files getan/states.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/getan/states.py	Thu Dec 13 08:57:05 2012 +0100
+++ b/getan/states.py	Thu Dec 13 09:00:09 2012 +0100
@@ -571,14 +571,14 @@
         return self
 
 
-class CreateProjectState(HandleUserInputState):
+class AlterProjectState(HandleUserInputState):
 
     messages = {
             'choose_proj': _(' Choose a project.'),
             }
 
     def __init__(self, controller, view):
-        super(CreateProjectState, self).__init__(controller, view, None,
+        super(AlterProjectState, self).__init__(controller, view, None,
                 controller.view.view.get_footer())
 
     def exit(self):
@@ -586,7 +586,7 @@
         return PausedProjectsState(self.controller, self.view)
 
 
-class AddProjectKeyState(CreateProjectState):
+class AddProjectKeyState(AlterProjectState):
 
     messages = {
         'choose_proj': _(' Choose a project.'),
@@ -606,7 +606,7 @@
         return AddProjectDescriptionState(self.controller, self.view, key)
 
 
-class AddProjectDescriptionState(CreateProjectState):
+class AddProjectDescriptionState(AlterProjectState):
     messages = {
         'proj_description': _('Insert a description for project: '),
         'choose_proj': _(" Choose a project.")
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)