web/uicfg.py
changeset 3480 370d20fec445
parent 3476 6e927b729ae1
child 3490 1acc89d4a512
--- a/web/uicfg.py	Fri Sep 25 11:54:03 2009 +0200
+++ b/web/uicfg.py	Fri Sep 25 11:54:49 2009 +0200
@@ -410,6 +410,9 @@
 # 'link' / 'create' relation tags, used to control the "add entity" submenu
 def init_actionbox_appearsin_addmenu(rtag, sschema, rschema, oschema, role):
     if rtag.get(sschema, rschema, oschema, role) is None:
+        if rschema in META_RTYPES:
+            rtag.tag_relation((sschema, rschema, oschema, role), False)
+            return
         card = rschema.rproperty(sschema, oschema, 'cardinality')[role == 'object']
         if not card in '?1' and \
                rschema.rproperty(sschema, oschema, 'composite') == role: