# HG changeset patch # User Aurelien Campeas # Date 1458126678 -3600 # Node ID 4db44a475b9b016c909956594ed4f689732452b5 # Parent 8ddfed7a5981ff0feac29d60035f5e25aec9af55 [session] retire session.vreg Related to #1381328. diff -r 8ddfed7a5981 -r 4db44a475b9b cubicweb/server/session.py --- a/cubicweb/server/session.py Wed Jul 16 16:26:16 2014 +0200 +++ b/cubicweb/server/session.py Wed Mar 16 12:11:18 2016 +0100 @@ -1010,7 +1010,6 @@ self.sessionid = _id or make_uid(unormalize(user.login)) self.user = user # XXX repoapi: deprecated and store only a login. self.repo = repo - self.vreg = repo.vreg self._timestamp = Timestamp() self.data = {} self.closed = False diff -r 8ddfed7a5981 -r 4db44a475b9b cubicweb/web/test/unittest_views_staticcontrollers.py --- a/cubicweb/web/test/unittest_views_staticcontrollers.py Wed Jul 16 16:26:16 2014 +0200 +++ b/cubicweb/web/test/unittest_views_staticcontrollers.py Wed Mar 16 12:11:18 2016 +0100 @@ -55,7 +55,7 @@ def test_check_static_dir_access(self): """write a file in the static directory and test the access""" - staticdir = osp.join(self.session.vreg.config.static_directory) + staticdir = osp.join(self.vreg.config.static_directory) if not os.path.exists(staticdir): os.makedirs(staticdir) filename = osp.join(staticdir, 'test')