cubicweb/test/unittest_schema.py
changeset 11775 39cf9e55ada8
parent 11768 b8b71dd09a2c
child 11852 dfcc3f74b3c8
equal deleted inserted replaced
11774:51c160677afe 11775:39cf9e55ada8
   173             'Date', 'Datetime', 'Decimal',
   173             'Date', 'Datetime', 'Decimal',
   174             'CWCache', 'CWComputedRType', 'CWConstraint',
   174             'CWCache', 'CWComputedRType', 'CWConstraint',
   175             'CWConstraintType', 'CWDataImport', 'CWEType',
   175             'CWConstraintType', 'CWDataImport', 'CWEType',
   176             'CWAttribute', 'CWGroup', 'EmailAddress',
   176             'CWAttribute', 'CWGroup', 'EmailAddress',
   177             'CWRelation', 'CWPermission', 'CWProperty', 'CWRType', 'CWSession',
   177             'CWRelation', 'CWPermission', 'CWProperty', 'CWRType', 'CWSession',
   178             'CWSource', 'CWSourceHostConfig', 'CWSourceSchemaConfig',
   178             'CWSource', 'CWSourceHostConfig',
   179             'CWUniqueTogetherConstraint', 'CWUser',
   179             'CWUniqueTogetherConstraint', 'CWUser',
   180             'ExternalUri', 'FakeFile', 'Float', 'Int', 'Interval', 'Note',
   180             'ExternalUri', 'FakeFile', 'Float', 'Int', 'Interval', 'Note',
   181             'Password', 'Personne', 'Produit',
   181             'Password', 'Personne', 'Produit',
   182             'RQLExpression', 'Reference',
   182             'RQLExpression', 'Reference',
   183             'Service', 'Societe', 'State', 'StateFull', 'String', 'SubNote', 'SubWorkflowExitPoint',
   183             'Service', 'Societe', 'State', 'StateFull', 'String', 'SubNote', 'SubWorkflowExitPoint',
   194             'cardinality', 'comment', 'comment_format',
   194             'cardinality', 'comment', 'comment_format',
   195             'composite', 'condition', 'config', 'connait',
   195             'composite', 'condition', 'config', 'connait',
   196             'constrained_by', 'constraint_of',
   196             'constrained_by', 'constraint_of',
   197             'content', 'content_format', 'contrat_exclusif',
   197             'content', 'content_format', 'contrat_exclusif',
   198             'created_by', 'creation_date', 'cstrtype', 'custom_workflow',
   198             'created_by', 'creation_date', 'cstrtype', 'custom_workflow',
   199             'cwuri', 'cwsessiondata', 'cw_for_source', 'cw_import_of', 'cw_host_config_of',
   199             'cwuri', 'cwsessiondata', 'cw_import_of', 'cw_host_config_of', 'cw_source',
   200             'cw_schema', 'cw_source',
       
   201 
   200 
   202             'data', 'data_encoding', 'data_format', 'data_name', 'default_workflow', 'defaultval',
   201             'data', 'data_encoding', 'data_format', 'data_name', 'default_workflow', 'defaultval',
   203             'delete_permission', 'description', 'description_format', 'destination_state',
   202             'delete_permission', 'description', 'description_format', 'destination_state',
   204             'dirige',
   203             'dirige',
   205 
   204 
   217 
   216 
   218             'mainvars', 'match_host', 'modification_date',
   217             'mainvars', 'match_host', 'modification_date',
   219 
   218 
   220             'name', 'nom',
   219             'name', 'nom',
   221 
   220 
   222             'options', 'ordernum', 'owned_by',
   221             'ordernum', 'owned_by',
   223 
   222 
   224             'parser', 'path', 'pkey', 'prefered_form', 'prenom', 'primary_email',
   223             'parser', 'path', 'pkey', 'prefered_form', 'prenom', 'primary_email',
   225 
   224 
   226             'read_permission', 'relation_type', 'relations', 'require_group', 'rule',
   225             'read_permission', 'relation_type', 'relations', 'require_group', 'rule',
   227 
   226 
   490                         ('constrained_by', 'CWAttribute', 'CWConstraint', 'subject'),
   489                         ('constrained_by', 'CWAttribute', 'CWConstraint', 'subject'),
   491                         ('read_permission', 'CWAttribute', 'RQLExpression', 'subject'),
   490                         ('read_permission', 'CWAttribute', 'RQLExpression', 'subject'),
   492                         ('update_permission', 'CWAttribute', 'RQLExpression', 'subject')],
   491                         ('update_permission', 'CWAttribute', 'RQLExpression', 'subject')],
   493         'CWEType': [('add_permission', 'CWEType', 'RQLExpression', 'subject'),
   492         'CWEType': [('add_permission', 'CWEType', 'RQLExpression', 'subject'),
   494                     ('constraint_of', 'CWUniqueTogetherConstraint', 'CWEType', 'object'),
   493                     ('constraint_of', 'CWUniqueTogetherConstraint', 'CWEType', 'object'),
   495                     ('cw_schema', 'CWSourceSchemaConfig', 'CWEType', 'object'),
       
   496                     ('delete_permission', 'CWEType', 'RQLExpression', 'subject'),
   494                     ('delete_permission', 'CWEType', 'RQLExpression', 'subject'),
   497                     ('from_entity', 'CWAttribute', 'CWEType', 'object'),
   495                     ('from_entity', 'CWAttribute', 'CWEType', 'object'),
   498                     ('from_entity', 'CWRelation', 'CWEType', 'object'),
   496                     ('from_entity', 'CWRelation', 'CWEType', 'object'),
   499                     ('read_permission', 'CWEType', 'RQLExpression', 'subject'),
   497                     ('read_permission', 'CWEType', 'RQLExpression', 'subject'),
   500                     ('to_entity', 'CWAttribute', 'CWEType', 'object'),
   498                     ('to_entity', 'CWAttribute', 'CWEType', 'object'),
   501                     ('to_entity', 'CWRelation', 'CWEType', 'object'),
   499                     ('to_entity', 'CWRelation', 'CWEType', 'object'),
   502                     ('update_permission', 'CWEType', 'RQLExpression', 'subject')],
   500                     ('update_permission', 'CWEType', 'RQLExpression', 'subject')],
   503         'CWRType': [('cw_schema', 'CWSourceSchemaConfig', 'CWRType', 'object'),
   501         'CWRType': [('relation_type', 'CWAttribute', 'CWRType', 'object'),
   504                     ('relation_type', 'CWAttribute', 'CWRType', 'object'),
       
   505                     ('relation_type', 'CWRelation', 'CWRType', 'object')],
   502                     ('relation_type', 'CWRelation', 'CWRType', 'object')],
   506         'CWRelation': [('add_permission', 'CWRelation', 'RQLExpression', 'subject'),
   503         'CWRelation': [('add_permission', 'CWRelation', 'RQLExpression', 'subject'),
   507                        ('constrained_by', 'CWRelation', 'CWConstraint', 'subject'),
   504                        ('constrained_by', 'CWRelation', 'CWConstraint', 'subject'),
   508                        ('cw_schema', 'CWSourceSchemaConfig', 'CWRelation', 'object'),
       
   509                        ('delete_permission', 'CWRelation', 'RQLExpression', 'subject'),
   505                        ('delete_permission', 'CWRelation', 'RQLExpression', 'subject'),
   510                        ('read_permission', 'CWRelation', 'RQLExpression', 'subject')],
   506                        ('read_permission', 'CWRelation', 'RQLExpression', 'subject')],
   511         'CWComputedRType': [('read_permission', 'CWComputedRType', 'RQLExpression', 'subject')],
   507         'CWComputedRType': [('read_permission', 'CWComputedRType', 'RQLExpression', 'subject')],
   512         'CWSource': [('cw_for_source', 'CWSourceSchemaConfig', 'CWSource', 'object'),
   508         'CWSource': [('cw_host_config_of', 'CWSourceHostConfig', 'CWSource', 'object'),
   513                      ('cw_host_config_of', 'CWSourceHostConfig', 'CWSource', 'object'),
       
   514                      ('cw_import_of', 'CWDataImport', 'CWSource', 'object'),
   509                      ('cw_import_of', 'CWDataImport', 'CWSource', 'object'),
   515                      ('cw_source', 'Ami', 'CWSource', 'object'),
   510                      ('cw_source', 'Ami', 'CWSource', 'object'),
   516                      ('cw_source', 'BaseTransition', 'CWSource', 'object'),
   511                      ('cw_source', 'BaseTransition', 'CWSource', 'object'),
   517                      ('cw_source', 'Bookmark', 'CWSource', 'object'),
   512                      ('cw_source', 'Bookmark', 'CWSource', 'object'),
   518                      ('cw_source', 'CWAttribute', 'CWSource', 'object'),
   513                      ('cw_source', 'CWAttribute', 'CWSource', 'object'),
   528                      ('cw_source', 'CWRType', 'CWSource', 'object'),
   523                      ('cw_source', 'CWRType', 'CWSource', 'object'),
   529                      ('cw_source', 'CWRelation', 'CWSource', 'object'),
   524                      ('cw_source', 'CWRelation', 'CWSource', 'object'),
   530                      ('cw_source', 'CWSession', 'CWSource', 'object'),
   525                      ('cw_source', 'CWSession', 'CWSource', 'object'),
   531                      ('cw_source', 'CWSource', 'CWSource', 'object'),
   526                      ('cw_source', 'CWSource', 'CWSource', 'object'),
   532                      ('cw_source', 'CWSourceHostConfig', 'CWSource', 'object'),
   527                      ('cw_source', 'CWSourceHostConfig', 'CWSource', 'object'),
   533                      ('cw_source', 'CWSourceSchemaConfig', 'CWSource', 'object'),
       
   534                      ('cw_source', 'CWUniqueTogetherConstraint', 'CWSource', 'object'),
   528                      ('cw_source', 'CWUniqueTogetherConstraint', 'CWSource', 'object'),
   535                      ('cw_source', 'CWUser', 'CWSource', 'object'),
   529                      ('cw_source', 'CWUser', 'CWSource', 'object'),
   536                      ('cw_source', 'Card', 'CWSource', 'object'),
   530                      ('cw_source', 'Card', 'CWSource', 'object'),
   537                      ('cw_source', 'EmailAddress', 'CWSource', 'object'),
   531                      ('cw_source', 'EmailAddress', 'CWSource', 'object'),
   538                      ('cw_source', 'ExternalUri', 'CWSource', 'object'),
   532                      ('cw_source', 'ExternalUri', 'CWSource', 'object'),