[uicfg] fix metadata detection in primaryview_section
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Tue, 04 Aug 2009 11:35:57 +0200
changeset 2671 ee5538bdf0ea
parent 2654 6512522860aa
child 2672 c66f52d44394
[uicfg] fix metadata detection in primaryview_section
web/uicfg.py
--- a/web/uicfg.py	Mon Aug 03 09:24:50 2009 +0200
+++ b/web/uicfg.py	Tue Aug 04 11:35:57 2009 +0200
@@ -86,7 +86,8 @@
         card = card_from_role(rschema.rproperty(sschema, oschema, 'cardinality'), role)
         composed = rschema.rproperty(sschema, oschema, 'composite') == neg_role(role)
         if rschema.is_final():
-            if rschema.meta or oschema.type in ('Password', 'Bytes'):
+            if rschema.meta or sschema.is_metadata(rschema) \
+                    or oschema.type in ('Password', 'Bytes'):
                 section = 'hidden'
             else:
                 section = 'attributes'