[Mpuls-commits] r1381 - in wasko/branches/2.0: . waskaweb/lib

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


Author: bh
Date: 2010-02-09 15:00:38 +0100 (Tue, 09 Feb 2010)
New Revision: 1381

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


Modified: wasko/branches/2.0/ChangeLog
===================================================================
--- wasko/branches/2.0/ChangeLog	2010-02-09 13:55:50 UTC (rev 1380)
+++ wasko/branches/2.0/ChangeLog	2010-02-09 14:00:38 UTC (rev 1381)
@@ -1,5 +1,9 @@
 2010-02-09  Bernhard Herzog  <bh at intevation.de>
 
+	* waskaweb/lib/template.py: Removed.  Unused.
+
+2010-02-09  Bernhard Herzog  <bh at intevation.de>
+
 	* mpulsweb/config/routing.py (make_map): Add extra route for
 	case_overview which is still in waskaweb.  See the comments for
 	more details.

Deleted: wasko/branches/2.0/waskaweb/lib/template.py
===================================================================
--- wasko/branches/2.0/waskaweb/lib/template.py	2010-02-09 13:55:50 UTC (rev 1380)
+++ wasko/branches/2.0/waskaweb/lib/template.py	2010-02-09 14:00:38 UTC (rev 1381)
@@ -1,58 +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.
-import pylons
-from pylons.templating import Buffet
-from pylons import config
-import mpulsweb.lib.helpers as h
-
-class MyBuffet(Buffet):
-    def _update_names(self, ns):
-        return ns
-
-def_eng = config['buffet.template_engines'][0]
-buffet = MyBuffet(
-    def_eng['engine'],
-    template_root=def_eng['template_root'],
-    **def_eng['template_options']
-)
-
-for e in config['buffet.template_engines'][1:]:
-    buffet.prepare(
-        e['engine'],
-        template_root=e['template_root'],
-        alias=e['alias'],
-        **e['template_options']
-    )
-
-class State:
-    pass
-
-c = State()
-c.user = 'None'
-
-def make_template():
-    return buffet.render(
-        template_name="/login.mako",
-        namespace=dict(h=h, c=State())
-    ).replace("%", "%%").replace("FORM_ACTION", "%s")



More information about the Mpuls-commits mailing list