schema.py
changeset 4913 083b4d454192
parent 4843 5f7363416765
child 5030 5238d9a8dfee
equal deleted inserted replaced
4912:9767cc516b4f 4913:083b4d454192
    32 from cubicweb import ETYPE_NAME_MAP, ValidationError, Unauthorized
    32 from cubicweb import ETYPE_NAME_MAP, ValidationError, Unauthorized
    33 
    33 
    34 PURE_VIRTUAL_RTYPES = set(('identity', 'has_text',))
    34 PURE_VIRTUAL_RTYPES = set(('identity', 'has_text',))
    35 VIRTUAL_RTYPES = set(('eid', 'identity', 'has_text',))
    35 VIRTUAL_RTYPES = set(('eid', 'identity', 'has_text',))
    36 
    36 
    37 #  set of meta-relations available for every entity types
    37 # set of meta-relations available for every entity types
    38 META_RTYPES = set((
    38 META_RTYPES = set((
    39     'owned_by', 'created_by', 'is', 'is_instance_of', 'identity',
    39     'owned_by', 'created_by', 'is', 'is_instance_of', 'identity',
    40     'eid', 'creation_date', 'modification_date', 'has_text', 'cwuri',
    40     'eid', 'creation_date', 'modification_date', 'has_text', 'cwuri',
    41     ))
    41     ))
    42 SYSTEM_RTYPES = set(('require_permission', 'custom_workflow', 'in_state', 'wf_info_for'))
    42 SYSTEM_RTYPES = set(('require_permission', 'custom_workflow', 'in_state',
    43 
    43                      'wf_info_for'))
    44 #  set of entity and relation types used to build the schema
    44 
       
    45 # set of entity and relation types used to build the schema
    45 SCHEMA_TYPES = set((
    46 SCHEMA_TYPES = set((
    46     'CWEType', 'CWRType', 'CWAttribute', 'CWRelation',
    47     'CWEType', 'CWRType', 'CWAttribute', 'CWRelation',
    47     'CWConstraint', 'CWConstraintType', 'RQLExpression',
    48     'CWConstraint', 'CWConstraintType', 'RQLExpression',
    48     'relation_type', 'from_entity', 'to_entity',
    49     'relation_type', 'from_entity', 'to_entity',
    49     'constrained_by', 'cstrtype',
    50     'constrained_by', 'cstrtype',