Index: /main/waeup.stress/trunk/src/waeup/stress/scripts.py
===================================================================
--- /main/waeup.stress/trunk/src/waeup/stress/scripts.py	(revision 9875)
+++ /main/waeup.stress/trunk/src/waeup/stress/scripts.py	(revision 9876)
@@ -6,4 +6,5 @@
 from zope.app.appsetup import database, config
 from zope.app.publication.zopepublication import ZopePublication
+from zope.app.wsgi import config as wsgi_config
 from waeup.kofa.app import University
 
@@ -43,8 +44,21 @@
     to this DB and the root folder.
     """
+    zope_conf = os.path.join(
+        instance_path, 'parts', 'etc', 'zope.conf')
+    config_file = os.path.join(
+        instance_path, 'parts', 'etc', 'site.zcml')
     print "WAEUP.STRESS: opening ZODB"
     zodb_file = os.path.join(
         instance_path, 'var', 'filestorage', 'Data.fs')
-    db = database(zodb_file)
+
+    print "WAEUP.STRESS: configuring ZODB from %s" % (
+        zope_conf)
+
+    db = wsgi_config(zope_conf)
+
+    # The way to configure a ZODB if only a single ZODB has to be set up.
+    #context = config(config_file)
+    #db = database(zodb_file)
+
     conn = db.open()
     root = conn.root()
