[Mpuls-commits] r2534 - in wasko/branches/2.0: . jmdweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Apr 27 16:51:47 CEST 2010


Author: torsten
Date: 2010-04-27 16:51:44 +0200 (Tue, 27 Apr 2010)
New Revision: 2534

Added:
   wasko/branches/2.0/jmdweb/controllers/jmdstruktur.py
Modified:
   wasko/branches/2.0/ChangeLog
Log:
Added jmdstruktur stub


Modified: wasko/branches/2.0/ChangeLog
===================================================================
--- wasko/branches/2.0/ChangeLog	2010-04-27 14:49:48 UTC (rev 2533)
+++ wasko/branches/2.0/ChangeLog	2010-04-27 14:51:44 UTC (rev 2534)
@@ -4,6 +4,12 @@
 	  mpulsweb/controllers/case_bundle.py,
 	  mpulsweb/lib/export.py: Added first version of XLS export. Generally
 	  works but has some issues with embedded RG.
+	* jmdweb/templates/main.mako: Added section for strukturdaten to
+	  jmdweb
+	* jmdweb/controllers/jmdstruktur.py: New. Controller to handle
+	  jmdstruktur module calls.
+	* jmdweb/templates/jmdstruktur/*: New. New templates for jmdstruktur
+	  module 
 
 2010-04-26  Torsten Irländer <torsten.irlaender at intevation.de>
 

Added: wasko/branches/2.0/jmdweb/controllers/jmdstruktur.py
===================================================================
--- wasko/branches/2.0/jmdweb/controllers/jmdstruktur.py	2010-04-27 14:49:48 UTC (rev 2533)
+++ wasko/branches/2.0/jmdweb/controllers/jmdstruktur.py	2010-04-27 14:51:44 UTC (rev 2534)
@@ -0,0 +1,55 @@
+# -*- coding: utf-8 -*-
+#
+# Copyright 2007, 2008 Intevation GmbH, Germany, <info at intevation.de>
+#
+# This file is part of mpuls WASKA (CoMPUter-based case fiLeS -
+# Web-Anwendungs-Server fuer Kompetenzagenturen).
+#
+# mpuls WASKA is free software: you can redistribute it and/or modify it under
+# the terms of the GNU Affero General Public License as published by the
+# Free Software Foundation, either version 3 of the License, or (at your
+# option) any later version.
+#
+# mpuls WASKA is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public
+# License for more details.
+#
+# You should have received a copy of the GNU Affero General Public
+# License along with mpuls WASKA. If not, see <http://www.gnu.org/licenses/>.
+#
+# mpuls WASKA has been developed on behalf of the
+# Projekttraeger im Deutschen Zentrum fuer Luft- und Raumfahrt e.V. (PT-DLR)
+# within the programme Kompetenzagenturen (Durchfuehrungsphase) funded by
+# the Bundesministerium fuer Familie, Senioren, Frauen und Jugend and
+# European Social Fund resources.
+#
+# Authors:
+# Torsten Irländer <torsten.irlaender at intevation.de>
+# Sascha L. Teichmann <teichmann at intevation.de>
+#
+
+import logging
+
+import formencode
+
+from mpulsweb.lib.base import BaseController, c, g, render, request, session
+from mpulsweb.lib.security import checkRole
+
+log = logging.getLogger(__name__)
+
+class JmdstrukturController(BaseController):
+
+    @checkRole('cm_ka')
+    def index(self):
+        page = render('jmdstruktur/overview.mako')
+        return formencode.htmlfill.render(page,
+                                          defaults={},
+                                          errors={})
+    @checkRole('cm_ka')
+    def new(self):
+        page = render('jmdstruktur/new.mako')
+        return formencode.htmlfill.render(page,
+                                          defaults={},
+                                          errors={})
+# vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8:



More information about the Mpuls-commits mailing list