diff MoinMoin/apps/admin/views.py @ 997:3e912ed37167

fix item sizes view
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 28 Oct 2011 17:42:09 -0200
parents 5bf6d7a2ffcf
children b65a998fab8e
line wrap: on
line diff
--- a/MoinMoin/apps/admin/views.py	Fri Oct 28 17:18:27 2011 -0200
+++ b/MoinMoin/apps/admin/views.py	Fri Oct 28 17:42:09 2011 -0200
@@ -226,8 +226,8 @@
     headings = [_('Size'),
                 _('Item name'),
                ]
-    rows = [(doc[SIZE], doc[NAME])
-            for doc in flaskg.storage.documents(wikiname=app.cfg.interwikiname)]
+    rows = [(rev.meta[SIZE], rev.meta[NAME])
+            for rev in flaskg.storage.documents(wikiname=app.cfg.interwikiname)]
     rows = sorted(rows, reverse=True)
     return render_template('admin/itemsize.html',
                            item_name="+admin/itemsize",