equal
deleted
inserted
replaced
182 composed = rschema.rproperty(sschema, oschema, 'composite') == 'object' |
182 composed = rschema.rproperty(sschema, oschema, 'composite') == 'object' |
183 else: |
183 else: |
184 card = rschema.rproperty(sschema, oschema, 'cardinality')[1] |
184 card = rschema.rproperty(sschema, oschema, 'cardinality')[1] |
185 composed = rschema.rproperty(sschema, oschema, 'composite') == 'subject' |
185 composed = rschema.rproperty(sschema, oschema, 'composite') == 'subject' |
186 if card in '1+': |
186 if card in '1+': |
187 if not rschema.is_final() and composed: |
187 section = 'primary' |
188 # XXX why? probably because we want it unlined, though this |
|
189 # is not the case by default |
|
190 section = 'generated' |
|
191 else: |
|
192 section = 'primary' |
|
193 elif rschema.is_final(): |
188 elif rschema.is_final(): |
194 section = 'secondary' |
189 section = 'secondary' |
195 else: |
190 else: |
196 section = 'generic' |
191 section = 'generic' |
197 rtag.tag_relation((sschema, rschema, oschema, role), section) |
192 rtag.tag_relation((sschema, rschema, oschema, role), section) |