cubicweb/server/schemaserial.py
changeset 11429 6a9a9ea1e9b9
parent 11151 4259c55df3e7
child 11763 39df042f4ab4
--- a/cubicweb/server/schemaserial.py	Fri Jun 26 10:26:00 2015 +0200
+++ b/cubicweb/server/schemaserial.py	Wed Jul 20 09:09:34 2016 +0200
@@ -93,9 +93,8 @@
     dbhelper = repo.system_source.dbhelper
 
     # Computed Rtype
-    with cnx.ensure_cnx_set:
-        tables = set(t.lower() for t in dbhelper.list_tables(cnx.cnxset.cu))
-        has_computed_relations = 'cw_cwcomputedrtype' in tables
+    tables = set(t.lower() for t in dbhelper.list_tables(cnx.cnxset.cu))
+    has_computed_relations = 'cw_cwcomputedrtype' in tables
     # computed attribute
     try:
         cnx.system_sql("SELECT cw_formula FROM cw_CWAttribute")