comparison MoinMoin/apps/admin/views.py @ 2687:daf1dbbf507c

Fixed traceback which comes on accessing +admin/itemsize due to tickets- shown fqname instead of name
author Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
date Fri, 01 Aug 2014 18:00:52 +0530
parents fded75e578be
children 63267bfa9099
comparison
equal deleted inserted replaced
2686:5cfec4b90170 2687:daf1dbbf507c
225 """display a table with item sizes""" 225 """display a table with item sizes"""
226 headings = [ 226 headings = [
227 _('Size'), 227 _('Size'),
228 _('Item name'), 228 _('Item name'),
229 ] 229 ]
230 rows = [(rev.meta[SIZE], rev.name) 230 rows = [(rev.meta[SIZE], rev.fqname)
231 for rev in flaskg.storage.documents(wikiname=app.cfg.interwikiname)] 231 for rev in flaskg.storage.documents(wikiname=app.cfg.interwikiname)]
232 rows = sorted(rows, reverse=True) 232 rows = sorted(rows, reverse=True)
233 return render_template('user/itemsize.html', 233 return render_template('user/itemsize.html',
234 title_name=_(u"Item Sizes"), 234 title_name=_(u"Item Sizes"),
235 headings=headings, 235 headings=headings,