changeset 1116:d56ce46d3e16

fix userbrowser
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 03 Dec 2011 23:50:40 +0100
parents cb2c9d6c69c8
children f2d8c602dbb6
files MoinMoin/apps/admin/views.py
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/apps/admin/views.py	Sat Dec 03 19:31:19 2011 +0100
+++ b/MoinMoin/apps/admin/views.py	Sat Dec 03 23:50:40 2011 +0100
@@ -37,14 +37,14 @@
     User Account Browser
     """
     groups = flaskg.groups
-    docs = user.search_users() # all users
-    user_accounts = [dict(uid=doc[ITEMID],
-                          name=doc[NAME],
-                          email=doc[EMAIL],
+    revs = user.search_users() # all users
+    user_accounts = [dict(uid=rev.meta[ITEMID],
+                          name=rev.meta[NAME],
+                          email=u'', # rev.meta[EMAIL],  # TODO: fix KeyError
                           disabled=False,  # TODO: add to index
-                          groups=[groupname for groupname in groups if doc[NAME] in groups[groupname]],
+                          groups=[groupname for groupname in groups if rev.meta[NAME] in groups[groupname]],
                      )
-                     for doc in docs]
+                     for rev in revs]
     return render_template('admin/userbrowser.html', user_accounts=user_accounts, title_name=_(u"User Browser"))