[server/schemaserial] rename cursor argument to cnx
authorJulien Cristau <julien.cristau@logilab.fr>
Tue, 28 Jan 2014 18:40:19 +0100
changeset 9489 0581f6d2812e
parent 9488 12dfce15c8ea
child 9490 b3d2c4065e6a
[server/schemaserial] rename cursor argument to cnx cursor is a sql concept it has no meaning for rql.
server/schemaserial.py
--- a/server/schemaserial.py	Wed Jan 29 15:57:48 2014 +0100
+++ b/server/schemaserial.py	Tue Jan 28 18:40:19 2014 +0100
@@ -74,9 +74,9 @@
                 break
     return res
 
-def cstrtype_mapping(cursor):
+def cstrtype_mapping(cnx):
     """cached constraint types mapping"""
-    map = dict(cursor.execute('Any T, X WHERE X is CWConstraintType, X name T'))
+    map = dict(cnx.execute('Any T, X WHERE X is CWConstraintType, X name T'))
     return map
 
 # schema / perms deserialization ##############################################