[Mpuls-commits] r1355 - wasko/branches/2.0/mpulsweb/controllers

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


Author: torsten
Date: 2010-02-09 12:15:33 +0100 (Tue, 09 Feb 2010)
New Revision: 1355

Modified:
   wasko/branches/2.0/mpulsweb/controllers/administration.py
Log:
* mpulsweb/controllers/administration.py 
  (AdministrationController.showUser): Moved from waskaweb.


Modified: wasko/branches/2.0/mpulsweb/controllers/administration.py
===================================================================
--- wasko/branches/2.0/mpulsweb/controllers/administration.py	2010-02-09 11:10:46 UTC (rev 1354)
+++ wasko/branches/2.0/mpulsweb/controllers/administration.py	2010-02-09 11:15:33 UTC (rev 1355)
@@ -6,7 +6,8 @@
 
 from mpulsweb.lib.base import BaseController, render
 from mpulsweb.lib.security import checkRole
-from mpulsweb.model.user import UserListObject, UserGroupList
+from mpulsweb.model.user import UserListObject, UserObject, UserGroupList, \
+    UserGroup
 
 log = logging.getLogger(__name__)
 
@@ -19,6 +20,13 @@
         c.user_overview = list.getUserList()
         return render('/administration/overview_user.mako')
 
+    @checkRole('admin_ka')
+    def showUser(self, id=None):
+        id = self._checkInt(id)
+        c.uo = UserObject(id)
+        c.vuo = UserGroup(c.uo.standin)
+        return render('/administration/show_user.mako')
+
     # USERGROUPS
     @checkRole('admin_ka')
     def overviewUserGroups(self):



More information about the Mpuls-commits mailing list