[Mpuls-commits] r1039 - wasko/branches/2.0/waskaweb/model
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Feb 1 11:18:20 CET 2010
Author: torsten
Date: 2010-02-01 11:18:20 +0100 (Mon, 01 Feb 2010)
New Revision: 1039
Removed:
wasko/branches/2.0/waskaweb/model/casedocument.py
Log:
* waskaweb/model/casedocument.py: Deleted. Not imported anywhere now.
Deleted: wasko/branches/2.0/waskaweb/model/casedocument.py
===================================================================
--- wasko/branches/2.0/waskaweb/model/casedocument.py 2010-02-01 10:16:31 UTC (rev 1038)
+++ wasko/branches/2.0/waskaweb/model/casedocument.py 2010-02-01 10:18:20 UTC (rev 1039)
@@ -1,73 +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>
-# Sascha L. Teichmann <teichmann at intevation.de>
-#
-
-from paste.registry import StackedObjectProxy
-
-from traceback import print_exc
-
-import re
-import sys
-
-from cgi import escape
-
-NOTICE = re.compile(r"notice\s*:\s*([^\s]+)")
-WARNING = re.compile(r"warning\s*:\s*([^\s]+)")
-WARNING_NOTICE = re.compile(r"(?:warning|notice)\s*:\s*([^\s]+)")
-
-page_cache = StackedObjectProxy(name="waska.pagecache")
-
-def enter(cache):
- page_cache._push_object(cache)
-
-def leave(cache=None):
- page_cache._pop_object(cache)
-
-class DataSaveException(Exception):
-
- def __init__(self, desc, errors = None):
- Exception.__init__(self, desc)
- self.errors = errors
-
- def toErrorDicts(self):
-
- values, errors = {}, {}
-
- for key, value, error in self.errors:
- values[key] = value
- try:
- old = errors[key]
- errors[key] = u"%s, %s" % (old, error)
- except KeyError:
- errors[key] = error
-
- return values, errors
-
-# vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :
More information about the Mpuls-commits
mailing list