schema.py
changeset 2437 b6b98198ca52
parent 2374 ea1a44e4ad62
child 2456 aa25d6b244c8
equal deleted inserted replaced
2436:44b2eea35efa 2437:b6b98198ca52
    43 SCHEMA_TYPES = set((
    43 SCHEMA_TYPES = set((
    44     'CWEType', 'CWRType', 'CWAttribute', 'CWRelation',
    44     'CWEType', 'CWRType', 'CWAttribute', 'CWRelation',
    45     'CWConstraint', 'CWConstraintType', 'RQLExpression',
    45     'CWConstraint', 'CWConstraintType', 'RQLExpression',
    46     'relation_type', 'from_entity', 'to_entity',
    46     'relation_type', 'from_entity', 'to_entity',
    47     'constrained_by', 'cstrtype',
    47     'constrained_by', 'cstrtype',
    48     # XXX those are not really "schema" entity types
       
    49     #     but we usually don't want them as @* targets
       
    50     'CWProperty', 'CWPermission', 'State', 'Transition',
       
    51     ))
    48     ))
    52 
    49 
    53 _LOGGER = getLogger('cubicweb.schemaloader')
    50 _LOGGER = getLogger('cubicweb.schemaloader')
    54 
    51 
    55 # schema entities created from serialized schema have an eid rproperty
    52 # schema entities created from serialized schema have an eid rproperty