[primary view] skip virtual rtypes anyway stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 30 Mar 2010 10:20:03 +0200
branchstable
changeset 5065 01d85f3a3d9e
parent 5064 494ae4ad4a14
child 5066 bf5cbc351e99
[primary view] skip virtual rtypes anyway
web/views/primary.py
--- a/web/views/primary.py	Tue Mar 30 10:18:23 2010 +0200
+++ b/web/views/primary.py	Tue Mar 30 10:20:03 2010 +0200
@@ -15,7 +15,7 @@
 from cubicweb import Unauthorized
 from cubicweb.selectors import match_kwargs
 from cubicweb.view import EntityView
-from cubicweb.schema import display_name
+from cubicweb.schema import VIRTUAL_RTYPES, display_name
 from cubicweb.web import uicfg
 
 
@@ -202,6 +202,8 @@
         rdefs = []
         eschema = entity.e_schema
         for rschema, tschemas, role in eschema.relation_definitions(True):
+            if rschema in VIRTUAL_RTYPES:
+                continue
             matchtschemas = []
             for tschema in tschemas:
                 section = self.rsection.etype_get(eschema, rschema, role,