web/uicfg.py
branchstable
changeset 3597 de066e1b4c36
parent 3489 3766d53c607e
child 3629 559cad62c786
child 3689 deb13e88e037
equal deleted inserted replaced
3595:b61f1c5e6c55 3597:de066e1b4c36
   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)