--- a/web/views/baseviews.py Wed Aug 12 18:40:52 2009 +0200
+++ b/web/views/baseviews.py Wed Aug 12 19:09:32 2009 +0200
@@ -110,7 +110,7 @@
"""the secondary view for an entity
secondary = icon + view(oneline)
"""
- entity = self.entity(row, col)
+ entity = self.rset.get_entity(row, col)
self.w(u' ')
self.wview('oneline', self.rset, row=row, col=col)
@@ -122,7 +122,7 @@
def cell_call(self, row, col):
"""the one line view for an entity: linked text view
"""
- entity = self.entity(row, col)
+ entity = self.rset.get_entity(row, col)
self.w(u'<a href="%s">' % xml_escape(entity.absolute_url()))
self.w(xml_escape(self.view('text', self.rset, row=row, col=col)))
self.w(u'</a>')
@@ -150,7 +150,7 @@
self.w(u"\n")
def cell_call(self, row, col=0, **kwargs):
- entity = self.entity(row, col)
+ entity = self.rset.get_entity(row, col)
self.w(cut(entity.dc_title(),
self.req.property_value('navigation.short-line-size')))
@@ -162,7 +162,7 @@
def cell_call(self, row, col):
_ = self.req._
- entity = self.entity(row, col)
+ entity = self.rset.get_entity(row, col)
self.w(u'<div class="metadata">')
if self.show_eid:
self.w(u'#%s - ' % entity.eid)
@@ -185,7 +185,7 @@
id = 'textincontext'
title = None # not listed as a possible view
def cell_call(self, row, col):
- entity = self.entity(row, col)
+ entity = self.rset.get_entity(row, col)
self.w(entity.dc_title())
@@ -193,7 +193,7 @@
id = 'textoutofcontext'
def cell_call(self, row, col):
- entity = self.entity(row, col)
+ entity = self.rset.get_entity(row, col)
self.w(entity.dc_long_title())
@@ -201,7 +201,7 @@
id = 'incontext'
def cell_call(self, row, col):
- entity = self.entity(row, col)
+ entity = self.rset.get_entity(row, col)
desc = cut(entity.dc_description(), 50)
self.w(u'<a href="%s" title="%s">' % (
xml_escape(entity.absolute_url()), xml_escape(desc)))
@@ -214,7 +214,7 @@
id = 'outofcontext'
def cell_call(self, row, col):
- entity = self.entity(row, col)
+ entity = self.rset.get_entity(row, col)
desc = cut(entity.dc_description(), 50)
self.w(u'<a href="%s" title="%s">' % (
xml_escape(entity.absolute_url()), xml_escape(desc)))