[devtools] even better: use a plain Connection (server-side) object for pre_setup
The previous commit switched from passing a Session to a
ClientConnection.
This fixes unittest_ldapsource's pre_setup_database, which relied on a
server-side object to get at the repo.
--- a/devtools/__init__.py Fri May 30 17:25:31 2014 +0200
+++ b/devtools/__init__.py Thu Jun 12 17:50:50 2014 +0200
@@ -491,7 +491,7 @@
repo = self.get_repo(startup=True)
cnx = self.get_cnx()
with cnx:
- pre_setup_func(cnx, self.config)
+ pre_setup_func(cnx._cnx, self.config)
cnx.commit()
self.backup_database(test_db_id)