[Mpuls-commits] r1345 - wasko/branches/2.0/mpulsweb/controllers
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Tue Feb 9 10:04:44 CET 2010
Author: torsten
Date: 2010-02-09 10:04:43 +0100 (Tue, 09 Feb 2010)
New Revision: 1345
Added:
wasko/branches/2.0/mpulsweb/controllers/administration.py
Log:
* mpulsweb/controllers/administration.py: New controller.
Added: wasko/branches/2.0/mpulsweb/controllers/administration.py
===================================================================
--- wasko/branches/2.0/mpulsweb/controllers/administration.py 2010-02-09 08:52:44 UTC (rev 1344)
+++ wasko/branches/2.0/mpulsweb/controllers/administration.py 2010-02-09 09:04:43 UTC (rev 1345)
@@ -0,0 +1,21 @@
+# -*- coding: utf-8 -*-
+import logging
+
+from pylons import request, response, session, tmpl_context as c
+from pylons.controllers.util import abort, redirect_to
+
+from mpulsweb.lib.base import BaseController, render
+from mpulsweb.lib.security import checkRole
+from mpulsweb.model.user import UserListObject
+
+log = logging.getLogger(__name__)
+
+class AdministrationController(BaseController):
+
+ @checkRole('admin_ka')
+ def overviewUser(self):
+ list = UserListObject()
+ c.user_overview = list.getUserList()
+ return render('/administration/overview_user.mako')
+
+# vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8:
More information about the Mpuls-commits
mailing list