Skip to content
Snippets Groups Projects
Commit f73fced7fcad authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

hack on the list view has been replaced by the full_list view

parent 8e533ff838ba
No related branches found
No related tags found
No related merge requests found
......@@ -164,5 +164,6 @@
## list views #################################################################
class BlogEntryListView(baseviews.ListView):
class BlogEntryListItemView(baseviews.ListItemView):
id = 'full_list'
__select__ = implements('BlogEntry')
......@@ -168,2 +169,3 @@
__select__ = implements('BlogEntry')
redirect_vid = 'blog'
......@@ -169,6 +171,6 @@
def call(self, klass='invisible', title=None, **kwargs):
def call(self, **kwargs):
"""display a list of entities by calling their <item_vid> view
"""
entity = self.entity(0,0)
self.req.add_css('cubes.blog.css')
......@@ -171,11 +173,9 @@
"""display a list of entities by calling their <item_vid> view
"""
entity = self.entity(0,0)
self.req.add_css('cubes.blog.css')
# XXX: no title if subvid specified to try to avoid cases where we want
# the original list view...
if title is None and not ('vtitle' in self.req.form or 'subvid' in kwargs):
if not 'vtitle' in self.req.form:
self.w(u'<h1>%s</h1>' % display_name(self.req, 'BlogEntry', form='plural'))
super(BlogEntryListView, self).call(klass=klass, **kwargs)
......@@ -178,13 +178,7 @@
self.w(u'<h1>%s</h1>' % display_name(self.req, 'BlogEntry', form='plural'))
super(BlogEntryListView, self).call(klass=klass, **kwargs)
class BlogEntryListItemView(baseviews.ListItemView):
id = 'full_list'
__select__ = implements('BlogEntry')
redirect_vid = 'blog'
class BlogEntryBlogView(baseviews.ListItemView):
id = 'blog'
__select__ = implements('BlogEntry')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment