41 from logilab.common.decorators import cached, clear_cache |
41 from logilab.common.decorators import cached, clear_cache |
42 from logilab.common.configuration import Method |
42 from logilab.common.configuration import Method |
43 from logilab.common.shellutils import getlogin |
43 from logilab.common.shellutils import getlogin |
44 from logilab.database import get_db_helper, sqlgen |
44 from logilab.database import get_db_helper, sqlgen |
45 |
45 |
46 from yams import schema2sql as y2sql |
|
47 from yams.schema import role_name |
46 from yams.schema import role_name |
48 |
47 |
49 from cubicweb import (UnknownEid, AuthenticationError, ValidationError, Binary, |
48 from cubicweb import (UnknownEid, AuthenticationError, ValidationError, Binary, |
50 UniqueTogetherError, UndoTransactionException) |
49 UniqueTogetherError, UndoTransactionException) |
51 from cubicweb import transaction as tx, server, neg_role |
50 from cubicweb import transaction as tx, server, neg_role |
52 from cubicweb.utils import QueryCache |
51 from cubicweb.utils import QueryCache |
53 from cubicweb.schema import VIRTUAL_RTYPES |
52 from cubicweb.schema import VIRTUAL_RTYPES |
54 from cubicweb.cwconfig import CubicWebNoAppConfiguration |
53 from cubicweb.cwconfig import CubicWebNoAppConfiguration |
55 from cubicweb.server import hook |
54 from cubicweb.server import hook |
|
55 from cubicweb.server import schema2sql as y2sql |
56 from cubicweb.server.utils import crypt_password, eschema_eid, verify_and_update |
56 from cubicweb.server.utils import crypt_password, eschema_eid, verify_and_update |
57 from cubicweb.server.sqlutils import SQL_PREFIX, SQLAdapterMixIn |
57 from cubicweb.server.sqlutils import SQL_PREFIX, SQLAdapterMixIn |
58 from cubicweb.server.rqlannotation import set_qdata |
58 from cubicweb.server.rqlannotation import set_qdata |
59 from cubicweb.server.hook import CleanupDeletedEidsCacheOp |
59 from cubicweb.server.hook import CleanupDeletedEidsCacheOp |
60 from cubicweb.server.edition import EditedEntity |
60 from cubicweb.server.edition import EditedEntity |