equal
deleted
inserted
replaced
42 |
42 |
43 from logilab.common.deprecation import deprecated |
43 from logilab.common.deprecation import deprecated |
44 from logilab.common.decorators import cached, clear_cache |
44 from logilab.common.decorators import cached, clear_cache |
45 |
45 |
46 from yams.constraints import SizeConstraint |
46 from yams.constraints import SizeConstraint |
47 from yams.schema2sql import eschema2sql, rschema2sql, unique_index_name |
|
48 from yams.schema import RelationDefinitionSchema |
47 from yams.schema import RelationDefinitionSchema |
49 |
48 |
50 from cubicweb import CW_SOFTWARE_ROOT, AuthenticationError, ExecutionError |
49 from cubicweb import CW_SOFTWARE_ROOT, AuthenticationError, ExecutionError |
51 from cubicweb.predicates import is_instance |
50 from cubicweb.predicates import is_instance |
52 from cubicweb.schema import (ETYPE_NAME_MAP, META_RTYPES, VIRTUAL_RTYPES, |
51 from cubicweb.schema import (ETYPE_NAME_MAP, META_RTYPES, VIRTUAL_RTYPES, |
54 CubicWebRelationSchema, order_eschemas) |
53 CubicWebRelationSchema, order_eschemas) |
55 from cubicweb.cwvreg import CW_EVENT_MANAGER |
54 from cubicweb.cwvreg import CW_EVENT_MANAGER |
56 from cubicweb import repoapi |
55 from cubicweb import repoapi |
57 from cubicweb.migration import MigrationHelper, yes |
56 from cubicweb.migration import MigrationHelper, yes |
58 from cubicweb.server import hook, schemaserial as ss |
57 from cubicweb.server import hook, schemaserial as ss |
|
58 from cubicweb.server.schema2sql import eschema2sql, rschema2sql, unique_index_name |
59 from cubicweb.server.utils import manager_userpasswd |
59 from cubicweb.server.utils import manager_userpasswd |
60 from cubicweb.server.sqlutils import sqlexec, SQL_PREFIX |
60 from cubicweb.server.sqlutils import sqlexec, SQL_PREFIX |
61 |
61 |
62 |
62 |
63 def mock_object(**params): |
63 def mock_object(**params): |