web/views/primary.py
branchstable
changeset 5065 01d85f3a3d9e
parent 4742 fac80328a6a3
child 5180 25c3269b2232
--- 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,