# HG changeset patch
# User Sylvain Thénault <sylvain.thenault@logilab.fr>
# Date 1248457392 -7200
# Node ID 5d7d4af9eadf86e4c76c5e814d4f84f116e6fcfe
# Parent  f28b1ffc3c912bbcf1c6030c7720ba72e52c3df7
fix some default autoform_section

diff -r f28b1ffc3c91 -r 5d7d4af9eadf 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