# HG changeset patch # User Sylvain Thénault # Date 1253872489 -7200 # Node ID 370d20fec445fea3f2ee5658dd9b7a85a7bdc71c # Parent d4fbf41adb5b374d4ed5a14d4be57bbf84068463 smarter default for actionbox_appearsin_addmenu diff -r d4fbf41adb5b -r 370d20fec445 web/uicfg.py --- 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: