diff MoinMoin/action/edit.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 6478c7744221
children ed44b93599b5
line wrap: on
line diff
--- a/MoinMoin/action/edit.py	Sun Nov 19 17:43:01 2006 +0100
+++ b/MoinMoin/action/edit.py	Sun Nov 19 20:44:41 2006 +0100
@@ -49,8 +49,8 @@
     if editor not in valideditors:
         editor = 'text'
 
+    rev = request.rev or 0
     savetext = request.form.get('savetext', [None])[0]
-    rev = int(request.form.get('rev', ['0'])[0])
     comment = request.form.get('comment', [u''])[0]
     category = request.form.get('category', [None])[0]
     rstrip = int(request.form.get('rstrip', ['0'])[0])