[primary view] consider rtypevid flag for relations in the 'relations' section as well stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 17 Aug 2010 15:22:04 +0200
branchstable
changeset 6113 dbe17a3ebb9f
parent 6112 913979c79244
child 6114 3e1718a2db55
[primary view] consider rtypevid flag for relations in the 'relations' section as well
web/views/primary.py
--- a/web/views/primary.py	Tue Aug 17 11:06:20 2010 +0200
+++ b/web/views/primary.py	Tue Aug 17 15:22:04 2010 +0200
@@ -154,7 +154,7 @@
 
     def render_entity_relations(self, entity):
         for rschema, tschemas, role, dispctrl in self._section_def(entity, 'relations'):
-            if rschema.final:
+            if rschema.final or dispctrl.get('rtypevid'):
                 self.w(u'<div class="section">')
                 label = self._rel_label(entity, rschema, role, dispctrl)
                 if label: