Skip to content
Snippets Groups Projects
Commit 0576c4b660e1 authored by Katia Saurfelt's avatar Katia Saurfelt
Browse files

CW-#342791 restore default list view for search results

parent 27f0c89739b6
No related branches found
No related tags found
No related merge requests found
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
rset = entity.related('entry_of', 'object') rset = entity.related('entry_of', 'object')
strio = UStringIO() strio = UStringIO()
self.pagination(self.req, rset, strio.write, page_size=10) self.pagination(self.req, rset, strio.write, page_size=10)
self.wview('list', rset, 'null', title='') self.wview('full_list', rset, 'null')
self.w(strio.getvalue()) self.w(strio.getvalue())
def render_entity_attributes(self, entity, siderelations): def render_entity_attributes(self, entity, siderelations):
...@@ -150,7 +150,7 @@ ...@@ -150,7 +150,7 @@
nmb_entries = self.req.execute(self.countrql, args)[0][0] nmb_entries = self.req.execute(self.countrql, args)[0][0]
label = u'%s %s [%s]' % (_(MONTHNAMES[month-1]), year, nmb_entries) label = u'%s %s [%s]' % (_(MONTHNAMES[month-1]), year, nmb_entries)
vtitle = '%s %s' % (_('BlogEntry_plural'), label) vtitle = '%s %s' % (_('BlogEntry_plural'), label)
url = html_escape(self.build_url(rql=rql, vtitle=vtitle, vid='list')) url = html_escape(self.build_url(rql=rql, vtitle=vtitle, vid='full_list'))
link = u'<a href="%s" title="">%s</a>' % (url, label) link = u'<a href="%s" title="">%s</a>' % (url, label)
items.append( u'<li class="">%s</li>\n' % link ) items.append( u'<li class="">%s</li>\n' % link )
...@@ -254,6 +254,7 @@ ...@@ -254,6 +254,7 @@
super(BlogEntryListView, self).call(klass=klass, **kwargs) super(BlogEntryListView, self).call(klass=klass, **kwargs)
class BlogEntryListItemView(baseviews.ListItemView): class BlogEntryListItemView(baseviews.ListItemView):
id="full_list"
accepts = ('BlogEntry',) accepts = ('BlogEntry',)
redirect_vid = 'blog' redirect_vid = 'blog'
...@@ -274,7 +275,7 @@ ...@@ -274,7 +275,7 @@
creator.surname) creator.surname)
rql = 'Any X ORDERBY D DESC WHERE X is BlogEntry, X created_by Y, '\ rql = 'Any X ORDERBY D DESC WHERE X is BlogEntry, X created_by Y, '\
'Y eid %s, X creation_date D' % creator.eid 'Y eid %s, X creation_date D' % creator.eid
url = self.build_url('view', vid="list", rql=rql, vtitle=vtitle, url = self.build_url('view', vid="full_list", rql=rql, vtitle=vtitle,
page_size = 10) page_size = 10)
w(u'%s <a href="%s">%s %s</a>' % (_('by'), html_escape(url), w(u'%s <a href="%s">%s %s</a>' % (_('by'), html_escape(url),
creator.firstname, creator.firstname,
......
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