changeset 1933:4658b5d59ad6 namespaces

fix blog item, use rev.name to just get first name
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 03 Feb 2013 04:05:02 +0100
parents 2bd864ed640e
children ee43744a3ac8
files MoinMoin/items/blog.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/items/blog.py	Sun Feb 03 03:56:51 2013 +0100
+++ b/MoinMoin/items/blog.py	Sun Feb 03 04:05:02 2013 +0100
@@ -20,7 +20,7 @@
 from MoinMoin.themes import render_template
 from MoinMoin.forms import OptionalText, Tags, DateTime
 from MoinMoin.storage.middleware.protecting import AccessDenied
-from MoinMoin.constants.keys import NAME, NAME_EXACT, WIKINAME, ITEMTYPE, MTIME, PTIME, TAGS
+from MoinMoin.constants.keys import NAME_EXACT, WIKINAME, ITEMTYPE, MTIME, PTIME, TAGS
 from MoinMoin.items import Item, Default, register, BaseMetaForm
 
 
@@ -81,7 +81,7 @@
         ptime_sort_facet = FunctionFacet(ptime_sort_key)
 
         revs = flaskg.storage.search(query, sortedby=ptime_sort_facet, reverse=True, limit=None)
-        blog_entry_items = [Item.create(rev.meta[NAME], rev_id=rev.revid) for rev in revs]  # XXX BROKEN - meta[NAME] is a list of names now
+        blog_entry_items = [Item.create(rev.name, rev_id=rev.revid) for rev in revs]
         return render_template('blog/main.html',
                                item_name=self.name,
                                blog_item=self,