changeset 1865:05158c12c271

merged main, added comment about more work needed
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 09 Mar 2007 00:56:44 +0100
parents 2b24220424fa (current diff) 5dd9f0eb99a7 (diff)
children 0194beaf511e
files MoinMoin/PageEditor.py
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/PageEditor.py	Fri Mar 09 00:48:20 2007 +0100
+++ b/MoinMoin/PageEditor.py	Fri Mar 09 00:56:44 2007 +0100
@@ -1016,6 +1016,12 @@
             f.write(revstr+'\n')
             f.close()
 
+            # we need to update request.rev here to get the right revision used for
+            # action links rendered by the final send_page() call (#preview display)
+            # XXX this is not the right place to do this as you could use this function
+            # to save any other page than the currently displayed one
+            #request.rev = rev
+
             if not deleted:
                 # save to page file
                 pagefile = os.path.join(revdir, revstr)
@@ -1133,7 +1139,6 @@
         # save only if no error occurred (msg is empty)
         if not msg:
             # set success msg
-            request.rev += 1
             msg = _("Thank you for your changes. Your attention to detail is appreciated.")
 
             # determine action for edit log