changeset 865:8e63434d6c1a storage-ng

show_item: switch off broken revision navigation
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 25 Sep 2011 13:32:04 +0200
parents 653f12dbaf9f
children 03efad0ebc90
files MoinMoin/apps/frontend/views.py
diffstat 1 files changed, 3 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/apps/frontend/views.py	Sun Sep 25 13:23:35 2011 +0200
+++ b/MoinMoin/apps/frontend/views.py	Sun Sep 25 13:32:04 2011 +0200
@@ -199,15 +199,9 @@
         item = Item.create(item_name, rev_no=rev)
     except AccessDeniedError:
         abort(403)
-    show_revision = show_navigation = rev != CURRENT
-    # Note: rev.revno of DummyRev is None
-    first_rev = None
-    last_rev = None
-    if show_navigation:
-        rev_nos = item.rev.item.list_revisions()
-        if rev_nos:
-            first_rev = rev_nos[0]
-            last_rev = rev_nos[-1]
+    show_revision = rev != CURRENT
+    show_navigation = False # TODO
+    first_rev = last_rev = None # TODO
     if isinstance(item, NonExistent):
         status = 404
     else: