[devtools] make CubiwebTC.login() context-manager restore the testcase connection on exit
# server debugging flag# copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr## This file is part of CubicWeb.## CubicWeb is free software: you can redistribute it and/or modify it under the# terms of the GNU Lesser General Public License as published by the Free# Software Foundation, either version 2.1 of the License, or (at your option)# any later version.## CubicWeb is distributed in the hope that it will be useful, but WITHOUT# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more# details.## You should have received a copy of the GNU Lesser General Public License along# with CubicWeb. If not, see <http://www.gnu.org/licenses/>.""""""DEBUG=False# sqlite'stored procedures have to be registered at connexion opening timeSQL_CONNECT_HOOKS={}# add to this set relations which should have their add security checking done# *BEFORE* adding the actual relation (done after by default)BEFORE_ADD_RELATIONS=set(('owned_by',))# add to this set relations which should have their add security checking done# *at COMMIT TIME* (done after by default)ON_COMMIT_ADD_RELATIONS=set(())# available sources registrySOURCE_TYPES={}