[primary] restore render_entity, as it is a bit too much work to update everything accordingly
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Tue, 21 Jul 2009 12:44:36 +0200
changeset 2400 17b1f0b80fe8
parent 2399 68799e25f893
child 2402 321a87654988
[primary] restore render_entity, as it is a bit too much work to update everything accordingly
web/views/primary.py
--- a/web/views/primary.py	Tue Jul 21 12:39:22 2009 +0200
+++ b/web/views/primary.py	Tue Jul 21 12:44:36 2009 +0200
@@ -40,6 +40,10 @@
     def cell_call(self, row, col):
         self.row = row
         entity = self.complete_entity(row, col)
+        self.render_entity(entity)
+        self.maxrelated = self.req.property_value('navigation.related-limit')
+
+    def render_entity(self, entity):
         self.render_entity_title(entity)
         self.render_entity_metadata(entity)
         # entity's attributes and relations, excluding meta data
@@ -64,7 +68,6 @@
             self.w(u'</div>')
             self.w(u'</td></tr></table>')
         self.content_navigation_components('navcontentbottom')
-        self.maxrelated = self.req.property_value('navigation.related-limit')
 
     def content_navigation_components(self, context):
         self.w(u'<div class="%s">' % context)