fix .cnxid of RepositoryBasedTC to be actual cnx id...
authorsylvain.thenault@logilab.fr
Thu, 26 Feb 2009 13:10:33 +0100
changeset 971 3abae727d121
parent 970 b52b1679f4e4
child 972 1efba3fd1364
fix .cnxid of RepositoryBasedTC to be actual cnx id...
devtools/apptest.py
--- a/devtools/apptest.py	Thu Feb 26 12:44:15 2009 +0100
+++ b/devtools/apptest.py	Thu Feb 26 13:10:33 2009 +0100
@@ -407,6 +407,7 @@
         self.__close(self.cnxid)
 
     # other utilities #########################################################
+    
     def set_debug(self, debugmode):
         from cubicweb.server import set_debug
         set_debug(debugmode)
@@ -452,7 +453,7 @@
         self.__commit = repo.commit
         self.__rollback = repo.rollback
         self.__close = repo.close
-        self.cnxid = repo.connect(*self.default_user_password())
+        self.cnxid = self._cnx.sessionid
         self.session = repo._sessions[self.cnxid]
         # XXX copy schema since hooks may alter it and it may be not fully
         #     cleaned (missing some schema synchronization support)