[Mpuls-commits] r1383 - in wasko/branches/2.0: . waskaweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Feb 9 15:04:28 CET 2010


Author: bh
Date: 2010-02-09 15:04:25 +0100 (Tue, 09 Feb 2010)
New Revision: 1383

Removed:
   wasko/branches/2.0/waskaweb/controllers/template.py
Modified:
   wasko/branches/2.0/ChangeLog
Log:
* waskaweb/controllers/template.py: Removed.  Unused.


Modified: wasko/branches/2.0/ChangeLog
===================================================================
--- wasko/branches/2.0/ChangeLog	2010-02-09 14:00:59 UTC (rev 1382)
+++ wasko/branches/2.0/ChangeLog	2010-02-09 14:04:25 UTC (rev 1383)
@@ -1,5 +1,9 @@
 2010-02-09  Bernhard Herzog  <bh at intevation.de>
 
+	* waskaweb/controllers/template.py: Removed.  Unused.
+
+2010-02-09  Bernhard Herzog  <bh at intevation.de>
+
 	* waskaweb/lib/template.py: Removed.  Unused.
 
 2010-02-09  Bernhard Herzog  <bh at intevation.de>

Deleted: wasko/branches/2.0/waskaweb/controllers/template.py
===================================================================
--- wasko/branches/2.0/waskaweb/controllers/template.py	2010-02-09 14:00:59 UTC (rev 1382)
+++ wasko/branches/2.0/waskaweb/controllers/template.py	2010-02-09 14:04:25 UTC (rev 1383)
@@ -1,52 +0,0 @@
-# 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.
-
-from waskaweb.lib.base import BaseController, abort
-
-
-class TemplateController(BaseController):
-
-    def view(self, url):
-        """By default, the final controller tried to fulfill the request
-        when no other routes match. It may be used to display a template
-        when all else fails, e.g.::
-
-            def view(self, url):
-                return render('/%s' % url)
-
-        Or if you're using Mako and want to explicitly send a 404 (Not
-        Found) response code when the requested template doesn't exist::
-
-            import mako.exceptions
-
-            def view(self, url):
-                try:
-                    return render('/%s' % url)
-                except mako.exceptions.TopLevelLookupException:
-                    abort(404)
-
-        By default this controller aborts the request with a 404 (Not
-        Found)
-        """
-        abort(404)



More information about the Mpuls-commits mailing list