changeset 149:ac7c6594fc0e

Add the getan config to the controller
author Björn Ricks <bjoern.ricks@intevation.de>
date Thu, 06 Dec 2012 12:26:33 +0100
parents f0a2beb17f9b
children 7ab5b887a7c5
files getan/controller.py
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/getan/controller.py	Thu Dec 06 12:25:58 2012 +0100
+++ b/getan/controller.py	Thu Dec 06 12:26:33 2012 +0100
@@ -15,6 +15,7 @@
 from getan.view import GetanView
 from getan.states import PausedProjectsState
 from getan.utils import format_time
+from getan.config import Config
 
 logger = logging.getLogger()
 
@@ -24,6 +25,8 @@
         self.ev_class = ev_class
         self.pv_class = pv_class
 
+        self.config = Config()
+
         self.backend      = backend
         projects, entries = self.load_projects()
         self.projects = projects
@@ -162,3 +165,6 @@
         projects, entries = self.load_projects()
         self.projects = projects
         self.project_view.load_rows(projects)
+
+    def get_config(self):
+        return self.config
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)