[Mpuls-commits] r2976 - in jmd/trunk: . jmdweb/controllers
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Jun 10 12:44:08 CEST 2010
Author: bh
Date: 2010-06-10 12:44:03 +0200 (Thu, 10 Jun 2010)
New Revision: 2976
Modified:
jmd/trunk/ChangeLog
jmd/trunk/jmdweb/controllers/jmdstruktur.py
Log:
* jmdweb/controllers/jmdstruktur.py (JmdstrukturController.index)
(JmdstrukturController.new): Do not call
formencode.htmlfill.render if it's not needed.
Modified: jmd/trunk/ChangeLog
===================================================================
--- jmd/trunk/ChangeLog 2010-06-10 10:43:10 UTC (rev 2975)
+++ jmd/trunk/ChangeLog 2010-06-10 10:44:03 UTC (rev 2976)
@@ -1,5 +1,11 @@
2010-06-10 Bernhard Herzog <bh at intevation.de>
+ * jmdweb/controllers/jmdstruktur.py (JmdstrukturController.index)
+ (JmdstrukturController.new): Do not call
+ formencode.htmlfill.render if it's not needed.
+
+2010-06-10 Bernhard Herzog <bh at intevation.de>
+
* jmdweb/model/struktur.py: New. Model part of the struktur user
management
Modified: jmd/trunk/jmdweb/controllers/jmdstruktur.py
===================================================================
--- jmd/trunk/jmdweb/controllers/jmdstruktur.py 2010-06-10 10:43:10 UTC (rev 2975)
+++ jmd/trunk/jmdweb/controllers/jmdstruktur.py 2010-06-10 10:44:03 UTC (rev 2976)
@@ -48,10 +48,7 @@
@checkRole(['cm', 'admin'])
def index(self):
- page = render('jmdstruktur/overview.mako')
- return formencode.htmlfill.render(page,
- defaults={},
- errors={})
+ return render('jmdstruktur/overview.mako')
@checkRole('admin')
def permission(self):
@@ -78,7 +75,6 @@
@checkRole(['cm', 'admin'])
def new(self):
- page = render('jmdstruktur/new.mako')
- return formencode.htmlfill.render(page, defaults={}, errors={})
+ return render('jmdstruktur/new.mako')
# vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8:
More information about the Mpuls-commits
mailing list