fix .cnxid of RepositoryBasedTC to be actual cnx id...
--- 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)