diff --git a/views.py b/views.py index 27f0c89739b678b2e94d928a85f910c5c9de0d35_dmlld3MucHk=..0576c4b660e1bf2563678b85e08cf603660274d4_dmlld3MucHk= 100644 --- a/views.py +++ b/views.py @@ -107,7 +107,7 @@ rset = entity.related('entry_of', 'object') strio = UStringIO() 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()) def render_entity_attributes(self, entity, siderelations): @@ -150,7 +150,7 @@ nmb_entries = self.req.execute(self.countrql, args)[0][0] label = u'%s %s [%s]' % (_(MONTHNAMES[month-1]), year, nmb_entries) 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) items.append( u'<li class="">%s</li>\n' % link ) @@ -254,6 +254,7 @@ super(BlogEntryListView, self).call(klass=klass, **kwargs) class BlogEntryListItemView(baseviews.ListItemView): + id="full_list" accepts = ('BlogEntry',) redirect_vid = 'blog' @@ -274,7 +275,7 @@ creator.surname) rql = 'Any X ORDERBY D DESC WHERE X is BlogEntry, X created_by Y, '\ '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) w(u'%s <a href="%s">%s %s</a>' % (_('by'), html_escape(url), creator.firstname,