changeset 175:5e069074b1c9

Add Controller method to update a project After a project is updated the current view is redisplayed.
author Björn Ricks <bjoern.ricks@intevation.de>
date Thu, 13 Dec 2012 09:31:35 +0100
parents 36b9f2d31810
children 6e8b23f1ee94
files getan/controller.py
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/getan/controller.py	Thu Dec 13 09:30:52 2012 +0100
+++ b/getan/controller.py	Thu Dec 13 09:31:35 2012 +0100
@@ -168,6 +168,11 @@
         for project in self.running:
             self.stop_project(display=False)
 
+    def update_project(self, project):
+        self.backend.update_project(project)
+        self.update_projects()
+        self.update_project_list()
+
     def update_projects(self):
         projects, entries = self.load_projects()
         self.projects = projects
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)