19 from cubicweb import ValidationError, RepositoryError |
19 from cubicweb import ValidationError, RepositoryError |
20 from cubicweb.server import schemaserial as ss |
20 from cubicweb.server import schemaserial as ss |
21 from cubicweb.server.sqlutils import SQL_PREFIX |
21 from cubicweb.server.sqlutils import SQL_PREFIX |
22 from cubicweb.server.pool import Operation, SingleLastOperation, PreCommitOperation |
22 from cubicweb.server.pool import Operation, SingleLastOperation, PreCommitOperation |
23 from cubicweb.server.hookhelper import (entity_attr, entity_name, |
23 from cubicweb.server.hookhelper import (entity_attr, entity_name, |
24 check_internal_entity) |
24 check_internal_entity) |
25 |
25 |
26 # core entity and relation types which can't be removed |
26 # core entity and relation types which can't be removed |
27 CORE_ETYPES = list(BASE_TYPES) + ['CWEType', 'CWRType', 'CWUser', 'CWGroup', |
27 CORE_ETYPES = list(BASE_TYPES) + ['CWEType', 'CWRType', 'CWUser', 'CWGroup', |
28 'CWConstraint', 'CWAttribute', 'CWRelation'] |
28 'CWConstraint', 'CWAttribute', 'CWRelation'] |
29 CORE_RTYPES = ['eid', 'creation_date', 'modification_date', 'cwuri', |
29 CORE_RTYPES = ['eid', 'creation_date', 'modification_date', 'cwuri', |