doc/book/en/intro/tutorial/create-cube.rst
changeset 2789 39712da6f397
parent 2545 f8246ed962f6
child 3293 69c0ba095536
equal deleted inserted replaced
2788:8d3dbe577d3a 2789:39712da6f397
   236 
   236 
   237     def content_format(self, entity):
   237     def content_format(self, entity):
   238         return entity.view('reledit', rtype='content_format')
   238         return entity.view('reledit', rtype='content_format')
   239 
   239 
   240     def cell_call(self, row, col):
   240     def cell_call(self, row, col):
   241         entity = self.entity(row, col)
   241         entity = self.rset.get_entity(row, col)
   242 
   242 
   243         # display entity attributes with prefixes
   243         # display entity attributes with prefixes
   244         self.w(u'<h1>%s</h1>' % entity.title)
   244         self.w(u'<h1>%s</h1>' % entity.title)
   245         self.w(u'<p>published on %s</p>' % entity.publish_date.strftime('%Y-%m-%d'))
   245         self.w(u'<p>published on %s</p>' % entity.publish_date.strftime('%Y-%m-%d'))
   246         self.w(u'<p>%s</p>' % entity.content)
   246         self.w(u'<p>%s</p>' % entity.content)