web/uicfg.py
changeset 5712 e136d392bd71
parent 5524 2f3d4ca6f7f8
child 5849 9db65b381028
--- a/web/uicfg.py	Thu Jun 10 10:18:34 2010 +0200
+++ b/web/uicfg.py	Thu Jun 10 14:16:47 2010 +0200
@@ -218,6 +218,12 @@
             sectdict.setdefault('main', 'hidden')
             sectdict.setdefault('muledit', 'hidden')
             sectdict.setdefault('inlined', 'hidden')
+        elif role == 'subject' and rschema in sschema.meta_attributes():
+            # meta attribute, usually embeded by the described attribute's field
+            # (eg RichTextField, FileField...)
+            sectdict.setdefault('main', 'hidden')
+            sectdict.setdefault('muledit', 'hidden')
+            sectdict.setdefault('inlined', 'hidden')
         # ensure we have a tag for each form type
         if not 'main' in sectdict:
             if not rschema.final and (