diff MoinMoin/apps/admin/views.py @ 1039:b521a6667a54 namespaces

access to Item's name through name property instead of meta directly. having a single-item list in update_item won't break tests, so the basic support for list is done. Plus two tests for multiple name indexing, not passing yet Routing is dirtly hacked, but it will be gone soon anyway
author Luis Henrique Fagundes <lhfagundes@gmail.com>
date Mon, 31 Oct 2011 01:42:27 -0200
parents b65a998fab8e
children 20625402725c
line wrap: on
line diff
--- a/MoinMoin/apps/admin/views.py	Sun Oct 30 22:14:23 2011 -0200
+++ b/MoinMoin/apps/admin/views.py	Mon Oct 31 01:42:27 2011 -0200
@@ -226,7 +226,7 @@
     headings = [_('Size'),
                 _('Item name'),
                ]
-    rows = [(rev.meta[SIZE], rev.meta[NAME])
+    rows = [(rev.meta[SIZE], rev.name)
             for rev in flaskg.storage.documents(wikiname=app.cfg.interwikiname)]
     rows = sorted(rows, reverse=True)
     return render_template('admin/itemsize.html',