mark metadata attributes as generated tls-sprint
authorsylvain.thenault@logilab.fr
Thu, 30 Apr 2009 14:42:03 +0200
branchtls-sprint
changeset 1606 aa766861faef
parent 1605 b239744627c7
child 1607 9747a0aa753c
mark metadata attributes as generated
web/views/autoform.py
--- a/web/views/autoform.py	Thu Apr 30 14:28:28 2009 +0200
+++ b/web/views/autoform.py	Thu Apr 30 14:42:03 2009 +0200
@@ -64,6 +64,8 @@
                         if card in '1+':
                             if not rschema.is_final() and composed:
                                 category = 'generated'
+                            elif eschema.is_metadata(rschema):
+                                category = 'generated'
                             else:
                                 category = 'primary'
                         elif rschema.is_final():