changeset 898:32c57b84512f storage-ng

moved prefix of ':' for diffs to diff
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Tue, 27 Sep 2011 22:42:39 +0200
parents 42662a463f0b
children c2a3e35cdc2f
files MoinMoin/apps/frontend/views.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/apps/frontend/views.py	Tue Sep 27 22:30:25 2011 +0200
+++ b/MoinMoin/apps/frontend/views.py	Tue Sep 27 22:42:39 2011 +0200
@@ -771,7 +771,7 @@
 
         # Aggregating comments, authors and revno
         for doc in docs:
-            rev_no = ':' + doc[REVID]
+            rev_no = doc[REVID]
             revnos.append(rev_no)
             comment = doc.get(COMMENT)
             if comment:
@@ -1506,8 +1506,8 @@
     #      If this happens for get_item, don't show the diff at all
     #      If it happens for get_revision, we may just want to skip that rev in the list
     item = flaskg.storage[item_name]
-    rev1 = request.values.get('rev1')
-    rev2 = request.values.get('rev2')
+    rev1 = ':' + request.values.get('rev1')
+    rev2 = ':' + request.values.get('rev2')
     return _diff(item, rev1, rev2)