comparison MoinMoin/action/diff.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 d1ceb31f3d02
children ed44b93599b5
comparison
equal deleted inserted replaced
1681:fc03cd8ff0f3 1682:30116d7d098a
37 rev2 = int(request.form.get('rev2', [0])[0]) 37 rev2 = int(request.form.get('rev2', [0])[0])
38 except StandardError: 38 except StandardError:
39 rev1 = 0 39 rev1 = 0
40 40
41 if rev1 == -1 and rev2 == 0: 41 if rev1 == -1 and rev2 == 0:
42 try: 42 rev1 = request.rev
43 rev1 = int(request.form.get('rev', [-1])[0]) 43 if rev1 is None:
44 except StandardError:
45 rev1 = -1 44 rev1 = -1
46 45
47 # spacing flag? 46 # spacing flag?
48 ignorews = int(request.form.get('ignorews', [0])[0]) 47 ignorews = int(request.form.get('ignorews', [0])[0])
49 48