[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.
--- 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