[migration] make 'session' object be a server-side Connection, not ClientConnection
authorJulien Cristau <julien.cristau@logilab.fr>
Thu, 03 Apr 2014 17:25:53 +0200
changeset 9603 1676d316171d
parent 9602 9fb2f15d5e85
child 9604 eba0e1b033ab
[migration] make 'session' object be a server-side Connection, not ClientConnection I think this better corresponds to the previous behaviour. However, that Connection does not have a cnxset, which should probably be changed (for both interactive_shell and cmd_process_script).
server/migractions.py
--- a/server/migractions.py	Thu Mar 20 08:45:52 2014 +0100
+++ b/server/migractions.py	Thu Apr 03 17:25:53 2014 +0200
@@ -310,7 +310,7 @@
                         'schema': self.repo.get_schema(),
                         'cnx': self.cnx,
                         'fsschema': self.fs_schema,
-                        'session' : self.cnx,
+                        'session' : self.cnx._cnx,
                         'repo' : self.repo,
                         })
         return context