server/migractions.py
changeset 9555 370a7c40864f
parent 9511 241b1232ed7f
child 9556 12ee310541bb
--- a/server/migractions.py	Tue Feb 18 17:29:34 2014 +0100
+++ b/server/migractions.py	Wed Mar 05 10:44:45 2014 +0100
@@ -327,7 +327,7 @@
                         'schema': self.repo.get_schema(),
                         'cnx': self.cnx,
                         'fsschema': self.fs_schema,
-                        'session' : self.cnx._cnx,
+                        'session' : self.cnx,
                         'repo' : self.repo,
                         })
         return context
@@ -1434,7 +1434,7 @@
         """
         if not ask_confirm or self.confirm('Execute sql: %s ?' % sql):
             try:
-                cu = self.cnx._cnx.system_sql(sql, args)
+                cu = self.cnx.system_sql(sql, args)
             except Exception:
                 ex = sys.exc_info()[1]
                 if self.confirm('Error: %s\nabort?' % ex, pdb=True):