84 def init_primaryview_section(rtag, sschema, rschema, oschema, role): |
84 def init_primaryview_section(rtag, sschema, rschema, oschema, role): |
85 if rtag.get(sschema, rschema, oschema, role) is None: |
85 if rtag.get(sschema, rschema, oschema, role) is None: |
86 card = card_from_role(rschema.rproperty(sschema, oschema, 'cardinality'), role) |
86 card = card_from_role(rschema.rproperty(sschema, oschema, 'cardinality'), role) |
87 composed = rschema.rproperty(sschema, oschema, 'composite') == neg_role(role) |
87 composed = rschema.rproperty(sschema, oschema, 'composite') == neg_role(role) |
88 if rschema.is_final(): |
88 if rschema.is_final(): |
89 if rschema.meta or oschema.type in ('Password', 'Bytes'): |
89 if rschema.meta or sschema.is_metadata(rschema) \ |
|
90 or oschema.type in ('Password', 'Bytes'): |
90 section = 'hidden' |
91 section = 'hidden' |
91 else: |
92 else: |
92 section = 'attributes' |
93 section = 'attributes' |
93 elif card in '1+': |
94 elif card in '1+': |
94 section = 'attributes' |
95 section = 'attributes' |