schemas/bootstrap.py
changeset 1979 daf297034197
parent 1977 606923dff11b
child 2127 bc86aa68cc43
equal deleted inserted replaced
1978:7df9c566aa3d 1979:daf297034197
    56                                 constraints=[RQLConstraint('O final TRUE')],
    56                                 constraints=[RQLConstraint('O final TRUE')],
    57                                 composite='object')
    57                                 composite='object')
    58     constrained_by = SubjectRelation('CWConstraint', cardinality='*1', composite='subject')
    58     constrained_by = SubjectRelation('CWConstraint', cardinality='*1', composite='subject')
    59 
    59 
    60     cardinality = String(maxsize=2, internationalizable=True,
    60     cardinality = String(maxsize=2, internationalizable=True,
    61                          vocabulary=[_('?1'), _('11'), _('??'), _('1?')],
    61                          vocabulary=[_('?1'), _('11')],
    62                          description=_('subject/object cardinality'))
    62                          description=_('subject/object cardinality'))
    63     ordernum = Int(description=('control subject entity\'s relations order'), default=0)
    63     ordernum = Int(description=('control subject entity\'s relations order'), default=0)
    64 
    64 
    65     indexed = Boolean(description=_('create an index for quick search on this attribute'))
    65     indexed = Boolean(description=_('create an index for quick search on this attribute'))
    66     fulltextindexed = Boolean(description=_('index this attribute\'s value in the plain text index'))
    66     fulltextindexed = Boolean(description=_('index this attribute\'s value in the plain text index'))