[server/schemaserial] rename cursor argument to cnx
cursor is a sql concept it has no meaning for rql.
--- 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 ##############################################