Commit c443c672 authored by Aurelien Campeas's avatar Aurelien Campeas
Browse files

[session,repo] remove last trace of "cnxprops"

Related to #1381328.
parent 10c12f31d0fe
......@@ -638,12 +638,11 @@ class Repository(object):
raise `AuthenticationError` if the authentication failed
raise `ConnectionError` if we can't open a connection
"""
cnxprops = kwargs.pop('cnxprops', None)
# use an internal connection
with self.internal_cnx() as cnx:
# try to get a user object
user = self.authenticate_user(cnx, login, **kwargs)
session = Session(user, self, cnxprops)
session = Session(user, self)
user._cw = user.cw_rset.req = session
user.cw_clear_relation_cache()
self._sessions[session.sessionid] = session
......
......@@ -1007,7 +1007,7 @@ class Session(object):
* other session data.
"""
def __init__(self, user, repo, cnxprops=None, _id=None):
def __init__(self, user, repo, _id=None):
self.sessionid = _id or make_uid(unormalize(user.login))
self.user = user # XXX repoapi: deprecated and store only a login.
self.repo = repo
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment