# HG changeset patch # User Sylvain Thénault # Date 1489161357 -3600 # Node ID e7e469d0539b332c055c774e2c35b9d292b45340 # Parent 1ce12b716e71b82e952b833d3927050ac1465bd8 [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. diff -r 1ce12b716e71 -r e7e469d0539b cubicweb/devtools/fake.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') diff -r 1ce12b716e71 -r e7e469d0539b cubicweb/server/repository.py --- 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