[session,repo] remove last trace of "cnxprops"
Related to #1381328.
--- a/cubicweb/server/repository.py Wed Mar 16 10:06:18 2016 +0100
+++ b/cubicweb/server/repository.py Wed Jul 16 15:30:16 2014 +0200
@@ -638,12 +638,11 @@
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
--- a/cubicweb/server/session.py Wed Mar 16 10:06:18 2016 +0100
+++ b/cubicweb/server/session.py Wed Jul 16 15:30:16 2014 +0200
@@ -1007,7 +1007,7 @@
* 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