changeset 1826:b6389701c31d

merged main
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 25 Feb 2007 19:17:56 +0100
parents 738bb2ec6b7f (current diff) b88810a5c7b5 (diff)
children 6a162bb60560
files
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/packages.py	Sun Feb 25 19:17:10 2007 +0100
+++ b/MoinMoin/packages.py	Sun Feb 25 19:17:56 2007 +0100
@@ -3,6 +3,7 @@
     MoinMoin - Package Installer
 
     @copyright: 2005 by MoinMoin:AlexanderSchremmer
+                2007 by ReimarBauer
     @license: GNU GPL, see COPYING for details.
 """
 
@@ -296,6 +297,7 @@
             trivial = str2boolean(trivial)
             uid = user.getUserId(self.request, author)
             theuser = user.User(self.request, uid)
+            save_user = self.request.user
             self.request.user = theuser
             page = PageEditor(self.request, pagename, do_editor_backup=0, uid_override=author)
             try:
@@ -303,6 +305,7 @@
                 self.msg += u"%(pagename)s added \n" % {"pagename": pagename}
             except PageEditor.Unchanged:
                 pass
+            self.request.user = save_user
             page.clean_acl_cache()
         else:
             self.msg += u"action add revision: not enough rights - nothing done \n"