[cleanup] Drop references to the old internal_session method
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 10 Mar 2017 16:55:57 +0100
changeset 12034 e7e469d0539b
parent 12033 1ce12b716e71
child 12035 2fcb9339f69a
[cleanup] Drop references to the old internal_session method dropped a while ago, no need to talk about it in a docstring nor to fake it.
cubicweb/devtools/fake.py
cubicweb/server/repository.py
--- a/cubicweb/devtools/fake.py	Fri Mar 10 16:31:08 2017 +0100
+++ b/cubicweb/devtools/fake.py	Fri Mar 10 16:55:57 2017 +0100
@@ -183,9 +183,6 @@
         self.vreg = vreg or FakeCWRegistryStore(self.config, initlog=False)
         self.vreg.schema = schema
 
-    def internal_session(self):
-        return FakeSession(self)
-
 
 class FakeSource(object):
     dbhelper = get_db_helper('sqlite')
--- a/cubicweb/server/repository.py	Fri Mar 10 16:31:08 2017 +0100
+++ b/cubicweb/server/repository.py	Fri Mar 10 16:55:57 2017 +0100
@@ -670,8 +670,7 @@
         """Context manager returning a Connection using internal user which have
         every access rights on the repository.
 
-        Beware that unlike the older :meth:`internal_session`, internal
-        connections have all hooks beside security enabled.
+        Internal connections have all hooks beside security enabled.
         """
         with Session(InternalManager(), self).new_cnx() as cnx:
             cnx.user._cw = cnx  # XXX remove when "vreg = user._cw.vreg" hack in entity.py is gone