equal
deleted
inserted
replaced
53 PURE_VIRTUAL_RTYPES, |
53 PURE_VIRTUAL_RTYPES, |
54 CubicWebRelationSchema, order_eschemas) |
54 CubicWebRelationSchema, order_eschemas) |
55 from cubicweb.cwvreg import CW_EVENT_MANAGER |
55 from cubicweb.cwvreg import CW_EVENT_MANAGER |
56 from cubicweb.dbapi import get_repository, _repo_connect |
56 from cubicweb.dbapi import get_repository, _repo_connect |
57 from cubicweb.migration import MigrationHelper, yes |
57 from cubicweb.migration import MigrationHelper, yes |
58 from cubicweb.server import hook |
58 from cubicweb.server import hook, schemaserial as ss |
59 try: |
59 from cubicweb.server.utils import manager_userpasswd |
60 from cubicweb.server import SOURCE_TYPES, schemaserial as ss |
60 from cubicweb.server.sqlutils import sqlexec, SQL_PREFIX |
61 from cubicweb.server.utils import manager_userpasswd |
|
62 from cubicweb.server.sqlutils import sqlexec, SQL_PREFIX |
|
63 except ImportError: # LAX |
|
64 pass |
|
65 |
61 |
66 |
62 |
67 def mock_object(**params): |
63 def mock_object(**params): |
68 return type('Mock', (), params)() |
64 return type('Mock', (), params)() |
69 |
65 |