fix some default autoform_section
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 24 Jul 2009 19:43:12 +0200
changeset 2505 5d7d4af9eadf
parent 2504 f28b1ffc3c91
child 2506 965d5e1557ed
fix some default autoform_section
web/uicfg.py
--- a/web/uicfg.py	Fri Jul 24 19:42:57 2009 +0200
+++ b/web/uicfg.py	Fri Jul 24 19:43:12 2009 +0200
@@ -186,7 +186,7 @@
             card = rschema.rproperty(sschema, oschema, 'cardinality')[1]
             composed = rschema.rproperty(sschema, oschema, 'composite') == 'subject'
         if sschema.is_metadata(rschema):
-            section = 'generated'
+            section = 'metadata'
         elif card in '1+':
             if not rschema.is_final() and composed:
                 section = 'generated'
@@ -229,8 +229,8 @@
 autoform_section.tag_attribute(('CWUser', 'surname'), 'secondary')
 autoform_section.tag_attribute(('CWUser', 'last_login_time'), 'metadata')
 autoform_section.tag_subject_of(('CWUser', 'in_group', '*'), 'primary')
-autoform_section.tag_object_of(('*', 'owned_by', 'CWUser'), 'generated')
-autoform_section.tag_object_of(('*', 'created_by', 'CWUser'), 'generated')
+autoform_section.tag_object_of(('*', 'owned_by', 'CWUser'), 'metadata')
+autoform_section.tag_object_of(('*', 'created_by', 'CWUser'), 'metadata')
 autoform_section.tag_object_of(('*', 'bookmarked_by', 'CWUser'), 'metadata')
 autoform_section.tag_attribute(('Bookmark', 'path'), 'primary')
 autoform_section.tag_subject_of(('*', 'use_email', '*'), 'generated') # inlined actually