changeset 4848:f1e75133ab7b

Groups2009: TestWikiGroupBackend.test_groups_with_member test was fixed.
author Dmitrijs Milajevs <dimazest@gmail.com>
date Mon, 13 Jul 2009 16:55:21 +0200
parents f0bcf3e1725d
children 0988f3da0c95
files MoinMoin/datastruct/backends/wiki_groups.py
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/datastruct/backends/wiki_groups.py	Mon Jul 13 16:55:17 2009 +0200
+++ b/MoinMoin/datastruct/backends/wiki_groups.py	Mon Jul 13 16:55:21 2009 +0200
@@ -62,6 +62,9 @@
     def _retrieve_members(self, group_name):
         formatter = Formatter(self.request)
         page = Page(self.request, group_name, formatter=formatter)
+
+        request_page = getattr(self.request, "page", None)
+        self.request.page = page
         # send_special is set to True because acl of the page should
         # not be processed to avoid infinite recursion in the
         # following case.
@@ -75,5 +78,10 @@
         #
         page.send_page(content_only=True, send_special=True)
 
+        if request_page:
+            self.request.page = request_page
+        else:
+             del(self.request.page)
+
         return formatter.members