diff MoinMoin/PageGraphicalEditor.py @ 1682:30116d7d098a

request.rev is either revision integer (when given in form) or None
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 19 Nov 2006 20:44:41 +0100
parents abd19aa50977
children 9ae9f564380e
line wrap: on
line diff
--- a/MoinMoin/PageGraphicalEditor.py	Sun Nov 19 17:43:01 2006 +0100
+++ b/MoinMoin/PageGraphicalEditor.py	Sun Nov 19 20:44:41 2006 +0100
@@ -111,7 +111,7 @@
         else:
             title = _('Preview of "%(pagename)s"')
             # Propagate original revision
-            rev = int(form['rev'][0])
+            rev = request.rev
             self.set_raw_body(preview, modified=1)
 
         # send header stuff