schema.py
branchstable
changeset 6375 df4fd2a1b0e7
parent 6262 84901d735156
child 6377 3bb415310d4f
equal deleted inserted replaced
6374:5adf53edfe12 6375:df4fd2a1b0e7
    49 # set of meta-relations available for every entity types
    49 # set of meta-relations available for every entity types
    50 META_RTYPES = set((
    50 META_RTYPES = set((
    51     'owned_by', 'created_by', 'is', 'is_instance_of', 'identity',
    51     'owned_by', 'created_by', 'is', 'is_instance_of', 'identity',
    52     'eid', 'creation_date', 'modification_date', 'has_text', 'cwuri',
    52     'eid', 'creation_date', 'modification_date', 'has_text', 'cwuri',
    53     ))
    53     ))
    54 SYSTEM_RTYPES = set(('require_permission', 'custom_workflow', 'in_state',
    54 WORKFLOW_RTYPES = set(('custom_workflow', 'in_state', 'wf_info_for'))
    55                      'wf_info_for'))
    55 SYSTEM_RTYPES = set(('require_permission',)) | WORKFLOW_RTYPES
    56 
    56 
    57 # set of entity and relation types used to build the schema
    57 # set of entity and relation types used to build the schema
    58 SCHEMA_TYPES = set((
    58 SCHEMA_TYPES = set((
    59     'CWEType', 'CWRType', 'CWAttribute', 'CWRelation',
    59     'CWEType', 'CWRType', 'CWAttribute', 'CWRelation',
    60     'CWConstraint', 'CWConstraintType', 'CWUniqueTogetherConstraint',
    60     'CWConstraint', 'CWConstraintType', 'CWUniqueTogetherConstraint',