changeset 4828:0f86a6c578e3

Groups2009: script.account.homepage was updated to use new request.groups.
author Dmitrijs Milajevs <dimazest@gmail.com>
date Sat, 27 Jun 2009 13:07:36 +0200
parents fd6183cde452
children 9d510417add0
files MoinMoin/script/account/homepage.py
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/script/account/homepage.py	Sat Jun 27 13:06:12 2009 +0200
+++ b/MoinMoin/script/account/homepage.py	Sat Jun 27 13:07:36 2009 +0200
@@ -6,7 +6,7 @@
 @license: GNU GPL, see COPYING for details.
 """
 
-from MoinMoin import user, wikidicts
+from MoinMoin import user
 from MoinMoin.Page import Page
 from MoinMoin.PageEditor import PageEditor
 from MoinMoin.script import MoinScript
@@ -108,8 +108,7 @@
         if self.options.user_homepage:
             members = [self.options.user_homepage, ]
         elif self.options.name_of_group_page:
-            user_group = wikidicts.Group(request, self.options.name_of_group_page)
-            members = user_group.members()
+            members = request.groups.get(self.options.name_of_group_page, [])
         elif self.options.all_users:
             uids = user.getUserList(request)
             members = [user.User(request, uid).name for uid in uids]