# HG changeset patch # User Julien Cristau # Date 1390930819 -3600 # Node ID 0581f6d2812ef9a08d7f1dfc8d6fc7d5a1d86c0e # Parent 12dfce15c8ea0ed26720cab0ecd24cd9dfbcc528 [server/schemaserial] rename cursor argument to cnx cursor is a sql concept it has no meaning for rql. diff -r 12dfce15c8ea -r 0581f6d2812e 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 ##############################################