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

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


Author: torsten
Date: 2010-02-09 12:26:32 +0100 (Tue, 09 Feb 2010)
New Revision: 1359

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


Modified: wasko/branches/2.0/mpulsweb/controllers/administration.py
===================================================================
--- wasko/branches/2.0/mpulsweb/controllers/administration.py	2010-02-09 11:21:11 UTC (rev 1358)
+++ wasko/branches/2.0/mpulsweb/controllers/administration.py	2010-02-09 11:26:32 UTC (rev 1359)
@@ -7,7 +7,7 @@
 from mpulsweb.lib.base import BaseController, render
 from mpulsweb.lib.security import checkRole
 from mpulsweb.model.user import UserListObject, UserObject, UserGroupList, \
-    UserGroup
+    UserGroup, UserGroupFactory
 
 log = logging.getLogger(__name__)
 
@@ -38,4 +38,14 @@
         c.group_overview = list.getGroupList(filter)
         return render('/administration/overview_usergroups.mako')
 
+    @checkRole('admin_ka')
+    def showUserGroup(self, id=None):
+        factory = UserGroupFactory()
+        id = self._checkInt(id)
+        group = factory.load(id)
+        groupmember = group.getUser()
+        c.group = group
+        c.groupmember = groupmember
+        return render('/administration/show_usergroup.mako')
+
 # vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8:



More information about the Mpuls-commits mailing list