[Mpuls-commits] r1637 - in wasko/branches/2.0: . waskaweb/controllers waskaweb/tests/functional

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Feb 16 16:44:18 CET 2010


Author: torsten
Date: 2010-02-16 16:44:16 +0100 (Tue, 16 Feb 2010)
New Revision: 1637

Removed:
   wasko/branches/2.0/waskaweb/controllers/CaseBase.py
   wasko/branches/2.0/waskaweb/tests/functional/test_CaseBase.py
Modified:
   wasko/branches/2.0/ChangeLog
Log:
Deleted unused CaseBase controller.


Modified: wasko/branches/2.0/ChangeLog
===================================================================
--- wasko/branches/2.0/ChangeLog	2010-02-16 15:38:37 UTC (rev 1636)
+++ wasko/branches/2.0/ChangeLog	2010-02-16 15:44:16 UTC (rev 1637)
@@ -116,7 +116,7 @@
 	Deleted.
 
 	* waskaweb/lib/base.py (BaseController): New. Added method _loadCase
-	to BaseController for waskaweb.
+	to BaseController for waskaweb. Copied from CaseBase controller.
 	* waskaweb/controllers/statement.py (StatementController): 
 	Inherit from BaseController. Formatting.
 	* waskaweb/controllers/caselifetime.py (CaselifetimeController):
@@ -126,6 +126,9 @@
 	* waskaweb/controllers/case_overview.py (CaseOverviewController): 
 	Inherit from BaseController. Formatting.
 
+	* waskaweb/tests/functional/test_CaseBase.py,
+	  waskaweb/controllers/CaseBase.py: Deleted. Not used anymore.
+
 2010-02-15  Bernhard Herzog  <bh at intevation.de>
 
 	* waskaweb/controllers/evaluate.py: The base package is called

Deleted: wasko/branches/2.0/waskaweb/controllers/CaseBase.py
===================================================================
--- wasko/branches/2.0/waskaweb/controllers/CaseBase.py	2010-02-16 15:38:37 UTC (rev 1636)
+++ wasko/branches/2.0/waskaweb/controllers/CaseBase.py	2010-02-16 15:44:16 UTC (rev 1637)
@@ -1,56 +0,0 @@
-# -*- 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>
-#
-
-import paste
-import logging
-
-from paste.httpexceptions import HTTPNotFound
-
-from waskaweb.lib.base import BaseController, h, redirect_to, session
-
-from waskaweb.model.case import CaseFactory, LoadCaseNotExistsError
-
-
-log = logging.getLogger(__name__)
-
-
-class CasebaseController(BaseController):
-
-    def index(self):
-        raise HTTPNotFound()
-
-    def _loadCase(self, id):
-        factory = CaseFactory()
-        try:
-            return factory.loadById(id)
-        except LoadCaseNotExistsError, err:
-            self.showError()
-
-# vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8:

Deleted: wasko/branches/2.0/waskaweb/tests/functional/test_CaseBase.py
===================================================================
--- wasko/branches/2.0/waskaweb/tests/functional/test_CaseBase.py	2010-02-16 15:38:37 UTC (rev 1636)
+++ wasko/branches/2.0/waskaweb/tests/functional/test_CaseBase.py	2010-02-16 15:44:16 UTC (rev 1637)
@@ -1,30 +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.tests import *
-
-class TestCasebaseController(TestController):
-
-    def test_index(self):
-        response = self.app.get(url_for(controller='CaseBase'))
-        # Test response...



More information about the Mpuls-commits mailing list