Drop bits from the past (no more dbapi isolated installation)
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 08 Jul 2016 10:13:15 +0200
changeset 11463 31e2de4d23a6
parent 11462 2046b3a4da5d
child 11464 96d1aed1e2b5
Drop bits from the past (no more dbapi isolated installation)
cubicweb/schema.py
--- a/cubicweb/schema.py	Mon Aug 29 12:05:11 2016 +0200
+++ b/cubicweb/schema.py	Fri Jul 08 10:13:15 2016 +0200
@@ -51,14 +51,7 @@
 import cubicweb
 from cubicweb import ETYPE_NAME_MAP, ValidationError, Unauthorized, _
 
-try:
-    from cubicweb import server
-except ImportError:
-    # We need to lookup DEBUG from there,
-    # however a pure dbapi client may not have it.
-    class server(object): pass
-    server.DEBUG = False
-
+from cubicweb import server
 
 PURE_VIRTUAL_RTYPES = set(('identity', 'has_text',))
 VIRTUAL_RTYPES = set(('eid', 'identity', 'has_text',))