75 * 'hidden', don't display |
75 * 'hidden', don't display |
76 * 'attributes', display in the attributes section |
76 * 'attributes', display in the attributes section |
77 * 'relations', display in the relations section, using the generic relation |
77 * 'relations', display in the relations section, using the generic relation |
78 selector combobox (available in main form only, and not for attribute |
78 selector combobox (available in main form only, and not for attribute |
79 relation) |
79 relation) |
|
80 * 'inlined', display target entity of the relation in an inlined form |
|
81 (available in main form only, and not for attribute relation) |
80 * 'metadata', display in a special metadata form (NOT YET IMPLEMENTED, |
82 * 'metadata', display in a special metadata form (NOT YET IMPLEMENTED, |
81 subject to changes) |
83 subject to changes) |
82 |
84 |
83 :autoform_field: |
85 :autoform_field: |
84 specify a custom field instance to use for a relation |
86 specify a custom field instance to use for a relation |
85 |
87 |
86 :autoform_field_kwargs: |
88 :autoform_field_kwargs: |
87 |
|
88 specify a dictionnary of arguments to give to the field constructor for a |
89 specify a dictionnary of arguments to give to the field constructor for a |
89 relation. You usually want to use either `autoform_field` or |
90 relation. You usually want to use either `autoform_field` or |
90 `autoform_field_kwargs`, not both. The later won't have any effect if the |
91 `autoform_field_kwargs`, not both. The later won't have any effect if the |
91 former is specified for a relation. |
92 former is specified for a relation. |
92 |
93 |
388 fromeid=entity.related(rschema.type, role)[0][0])): |
389 fromeid=entity.related(rschema.type, role)[0][0])): |
389 continue |
390 continue |
390 yield (rschema, targetschemas, role) |
391 yield (rschema, targetschemas, role) |
391 |
392 |
392 |
393 |
393 |
|
394 autoform_section = AutoformSectionRelationTags('autoform_section') |
394 autoform_section = AutoformSectionRelationTags('autoform_section') |
395 |
395 |
396 # relations'field class |
396 # relations'field class |
397 autoform_field = RelationTags('autoform_field') |
397 autoform_field = RelationTags('autoform_field') |
398 |
398 |