[repoapi] make ClientConnection call RequestSessionBase's init
authorJulien Cristau <julien.cristau@logilab.fr>
Thu, 19 Jun 2014 17:39:12 +0200
changeset 9813 c20956f5862d
parent 9812 122c0b6a82a3
child 9817 bb719d857421
[repoapi] make ClientConnection call RequestSessionBase's init Not calling up means we're missing some attributes, like encoding.
repoapi.py
--- a/repoapi.py	Mon Jun 02 18:31:09 2014 +0200
+++ b/repoapi.py	Thu Jun 19 17:39:12 2014 +0200
@@ -148,6 +148,7 @@
     is_repo_in_memory = True # BC, always true
 
     def __init__(self, session, autoclose_session=False):
+        super(ClientConnection, self).__init__(session.vreg)
         self._session = session # XXX there is no real reason to keep the
                                 # session around function still using it should
                                 # be rewritten and migrated.
@@ -156,7 +157,6 @@
         self._web_request = False
         #: cache entities built during the connection
         self._eid_cache = {}
-        self.vreg = session.vreg
         self._set_user(session.user)
         self._autoclose_session = autoclose_session