cubicweb/schema.py
changeset 11463 31e2de4d23a6
parent 11446 ca90cd9b112b
child 11681 b23d58050076
--- 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',))