184 composed = rschema.rproperty(sschema, oschema, 'composite') == 'object' |
184 composed = rschema.rproperty(sschema, oschema, 'composite') == 'object' |
185 else: |
185 else: |
186 card = rschema.rproperty(sschema, oschema, 'cardinality')[1] |
186 card = rschema.rproperty(sschema, oschema, 'cardinality')[1] |
187 composed = rschema.rproperty(sschema, oschema, 'composite') == 'subject' |
187 composed = rschema.rproperty(sschema, oschema, 'composite') == 'subject' |
188 if sschema.is_metadata(rschema): |
188 if sschema.is_metadata(rschema): |
189 section = 'generated' |
189 section = 'metadata' |
190 elif card in '1+': |
190 elif card in '1+': |
191 if not rschema.is_final() and composed: |
191 if not rschema.is_final() and composed: |
192 section = 'generated' |
192 section = 'generated' |
193 else: |
193 else: |
194 section = 'primary' |
194 section = 'primary' |
227 autoform_section.tag_attribute(('CWRType', 'final'), 'generated') |
227 autoform_section.tag_attribute(('CWRType', 'final'), 'generated') |
228 autoform_section.tag_attribute(('CWUser', 'firstname'), 'secondary') |
228 autoform_section.tag_attribute(('CWUser', 'firstname'), 'secondary') |
229 autoform_section.tag_attribute(('CWUser', 'surname'), 'secondary') |
229 autoform_section.tag_attribute(('CWUser', 'surname'), 'secondary') |
230 autoform_section.tag_attribute(('CWUser', 'last_login_time'), 'metadata') |
230 autoform_section.tag_attribute(('CWUser', 'last_login_time'), 'metadata') |
231 autoform_section.tag_subject_of(('CWUser', 'in_group', '*'), 'primary') |
231 autoform_section.tag_subject_of(('CWUser', 'in_group', '*'), 'primary') |
232 autoform_section.tag_object_of(('*', 'owned_by', 'CWUser'), 'generated') |
232 autoform_section.tag_object_of(('*', 'owned_by', 'CWUser'), 'metadata') |
233 autoform_section.tag_object_of(('*', 'created_by', 'CWUser'), 'generated') |
233 autoform_section.tag_object_of(('*', 'created_by', 'CWUser'), 'metadata') |
234 autoform_section.tag_object_of(('*', 'bookmarked_by', 'CWUser'), 'metadata') |
234 autoform_section.tag_object_of(('*', 'bookmarked_by', 'CWUser'), 'metadata') |
235 autoform_section.tag_attribute(('Bookmark', 'path'), 'primary') |
235 autoform_section.tag_attribute(('Bookmark', 'path'), 'primary') |
236 autoform_section.tag_subject_of(('*', 'use_email', '*'), 'generated') # inlined actually |
236 autoform_section.tag_subject_of(('*', 'use_email', '*'), 'generated') # inlined actually |
237 autoform_section.tag_subject_of(('*', 'primary_email', '*'), 'generic') |
237 autoform_section.tag_subject_of(('*', 'primary_email', '*'), 'generic') |
238 |
238 |