server/session.py
changeset 2792 135580d15d42
parent 2788 8d3dbe577d3a
child 2840 06daf13195d4
equal deleted inserted replaced
2791:7ef2b08fbe28 2792:135580d15d42
    13 
    13 
    14 from logilab.common.deprecation import deprecated
    14 from logilab.common.deprecation import deprecated
    15 from rql.nodes import VariableRef, Function, ETYPE_PYOBJ_MAP, etype_from_pyobj
    15 from rql.nodes import VariableRef, Function, ETYPE_PYOBJ_MAP, etype_from_pyobj
    16 from yams import BASE_TYPES
    16 from yams import BASE_TYPES
    17 
    17 
    18 from cubicweb import RequestSessionMixIn, Binary, UnknownEid
    18 from cubicweb import Binary, UnknownEid
       
    19 from cubicweb.req import RequestSessionBase
    19 from cubicweb.dbapi import ConnectionProperties
    20 from cubicweb.dbapi import ConnectionProperties
    20 from cubicweb.utils import make_uid
    21 from cubicweb.utils import make_uid
    21 from cubicweb.server.rqlrewrite import RQLRewriter
    22 from cubicweb.server.rqlrewrite import RQLRewriter
    22 
    23 
    23 ETYPE_PYOBJ_MAP[Binary] = 'Bytes'
    24 ETYPE_PYOBJ_MAP[Binary] = 'Bytes'
    39     for term in selected:
    40     for term in selected:
    40         description.append(term.get_type(solution, args))
    41         description.append(term.get_type(solution, args))
    41     return description
    42     return description
    42 
    43 
    43 
    44 
    44 class Session(RequestSessionMixIn):
    45 class Session(RequestSessionBase):
    45     """tie session id, user, connections pool and other session data all
    46     """tie session id, user, connections pool and other session data all
    46     together
    47     together
    47     """
    48     """
    48 
    49 
    49     def __init__(self, user, repo, cnxprops=None, _id=None):
    50     def __init__(self, user, repo, cnxprops=None, _id=None):