[session/cnx] remove `session_handled` logic
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Tue, 10 Jun 2014 15:06:44 +0200
changeset 10359 8e4ba1028f55
parent 10358 d551d0a162d5
child 10360 1fdbe2ea63d8
[session/cnx] remove `session_handled` logic Related to #3837233 .
server/session.py
--- a/server/session.py	Tue Jun 10 14:44:36 2014 +0200
+++ b/server/session.py	Tue Jun 10 15:06:44 2014 +0200
@@ -450,23 +450,14 @@
     is_repo_in_memory = True # bw compat
     mode = 'read'
 
-    def __init__(self, session, cnxid=None, session_handled=False):
+    def __init__(self, session):
         # using super(Connection, self) confuse some test hack
         RequestSessionBase.__init__(self, session.vreg)
-        # only the session provide explicite
-        if cnxid is not None:
-            assert session_handled # only session profive explicite cnxid
         #: connection unique id
         self._open = None
-        if cnxid is None:
-            cnxid = '%s-%s' % (session.sessionid, uuid4().hex)
-        self.connectionid = cnxid
+        self.connectionid = '%s-%s' % (session.sessionid, uuid4().hex)
         self.session = session
         self.sessionid = session.sessionid
-        #: self._session_handled
-        #: are the life cycle of this Connection automatically controlled by the
-        #: Session This is the old backward compatibility mode
-        self._session_handled = session_handled
         #: reentrance handling
         self.ctx_count = 0
         #: count the number of entry in a context needing a cnxset