doc/book/en/development/devweb/views.rst
changeset 2789 39712da6f397
parent 2544 282261b26774
child 3293 69c0ba095536
--- a/doc/book/en/development/devweb/views.rst	Wed Aug 12 18:40:52 2009 +0200
+++ b/doc/book/en/development/devweb/views.rst	Wed Aug 12 19:09:32 2009 +0200
@@ -124,7 +124,7 @@
        __select__ =implements('Blog')
 
        def cell_call(self, row, col):
-           entity = self.entity(row, col)
+           entity = self.rset.get_entity(row, col)
            self.w(u'<h1>%s</h1>' % entity.title)
            self.w(u'<p>published on %s in category %s</p>' % \
                   (entity.publish_date.strftime('%Y-%m-%d'), entity.category))
@@ -155,7 +155,7 @@
      __select__ =implements('Blog')
 
      def cell_call(self, row, col):
-         entity = self.entity(row, col)
+         entity = self.rset.get_entity(row, col)
          self.w(u'<h1>%s</h1>' % entity.title)
          self.w(u'<p>%s</p>' % entity.description)
          rset = self.req.execute('Any E WHERE E entry_of B, B eid "%s"' % entity.eid)