[web/views] remove dbapi usage from 'gc' view
authorJulien Cristau <julien.cristau@logilab.fr>
Fri, 13 Mar 2015 16:57:32 +0100
changeset 10330 6c12264b3f18
parent 10325 d2e1e67af4e1
child 10331 6f25c7e4f19b
[web/views] remove dbapi usage from 'gc' view
sobjects/services.py
web/views/debug.py
--- a/sobjects/services.py	Thu Apr 02 10:41:53 2015 +0200
+++ b/sobjects/services.py	Fri Mar 13 16:57:32 2015 +0100
@@ -79,13 +79,11 @@
         from cubicweb._gcdebug import gc_info
         from cubicweb.appobject import AppObject
         from cubicweb.rset import ResultSet
-        from cubicweb.dbapi import Connection, Cursor
         from cubicweb.web.request import CubicWebRequestBase
         from rql.stmts import Union
 
         lookupclasses = (AppObject,
                          Union, ResultSet,
-                         Connection, Cursor,
                          CubicWebRequestBase)
         try:
             from cubicweb.server.session import Session, InternalSession
--- a/web/views/debug.py	Thu Apr 02 10:41:53 2015 +0200
+++ b/web/views/debug.py	Fri Mar 13 16:57:32 2015 +0100
@@ -24,7 +24,6 @@
 
 from logilab.mtconverter import xml_escape
 
-from cubicweb import BadConnectionId
 from cubicweb.predicates import none_rset, match_user_groups
 from cubicweb.view import StartupView
 from cubicweb.web.views import actions, tabs