devtools/__init__.py
changeset 6377 3bb415310d4f
parent 6315 8ca3ee849bee
child 6425 8d7c2fd2ac66
equal deleted inserted replaced
6376:f8662240ed4d 6377:3bb415310d4f
    33 
    33 
    34 cwconfig.CubicWebConfiguration.cls_adjust_sys_path()
    34 cwconfig.CubicWebConfiguration.cls_adjust_sys_path()
    35 
    35 
    36 # db auto-population configuration #############################################
    36 # db auto-population configuration #############################################
    37 
    37 
    38 SYSTEM_ENTITIES = schema.SCHEMA_TYPES | set((
    38 SYSTEM_ENTITIES = (schema.SCHEMA_TYPES
    39     'CWGroup', 'CWUser', 'CWProperty',
    39                    | schema.INTERNAL_TYPES
    40     'Workflow', 'State', 'BaseTransition', 'Transition', 'WorkflowTransition',
    40                    | schema.WORKFLOW_TYPES
    41     'TrInfo', 'SubWorkflowExitPoint',
    41                    | set(('CWGroup', 'CWUser',))
    42     ))
    42                    )
    43 
    43 SYSTEM_RELATIONS = (schema.META_RTYPES
    44 SYSTEM_RELATIONS = schema.META_RTYPES | set((
    44                     | schema.WORKFLOW_RTYPES
    45     # workflow related
    45                     | schema.WORKFLOW_DEF_RTYPES
    46     'workflow_of', 'state_of', 'transition_of', 'initial_state', 'default_workflow',
    46                     | schema.SYSTEM_RTYPES
    47     'allowed_transition', 'destination_state', 'from_state', 'to_state',
    47                     | schema.SCHEMA_TYPES
    48     'condition', 'subworkflow', 'subworkflow_state', 'subworkflow_exit',
    48                     | set(('primary_email', # deducted from other relations
    49     'custom_workflow', 'in_state', 'wf_info_for',
    49                            ))
    50     # cwproperty
    50                     )
    51     'for_user',
       
    52     # schema definition
       
    53     'specializes',
       
    54     'relation_type', 'from_entity', 'to_entity',
       
    55     'constrained_by', 'cstrtype', 'widget',
       
    56     'read_permission', 'update_permission', 'delete_permission', 'add_permission',
       
    57     # permission
       
    58     'in_group', 'require_group', 'require_permission',
       
    59     # deducted from other relations
       
    60     'primary_email',
       
    61     ))
       
    62 
    51 
    63 # content validation configuration #############################################
    52 # content validation configuration #############################################
    64 
    53 
    65 # validators are used to validate (XML, DTD, whatever) view's content
    54 # validators are used to validate (XML, DTD, whatever) view's content
    66 # validators availables are :
    55 # validators availables are :