Changeset 9876 for main/waeup.stress/trunk/src/waeup/stress
- Timestamp:
- 13 Jan 2013, 02:15:28 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.stress/trunk/src/waeup/stress/scripts.py
r8750 r9876 6 6 from zope.app.appsetup import database, config 7 7 from zope.app.publication.zopepublication import ZopePublication 8 from zope.app.wsgi import config as wsgi_config 8 9 from waeup.kofa.app import University 9 10 … … 43 44 to this DB and the root folder. 44 45 """ 46 zope_conf = os.path.join( 47 instance_path, 'parts', 'etc', 'zope.conf') 48 config_file = os.path.join( 49 instance_path, 'parts', 'etc', 'site.zcml') 45 50 print "WAEUP.STRESS: opening ZODB" 46 51 zodb_file = os.path.join( 47 52 instance_path, 'var', 'filestorage', 'Data.fs') 48 db = database(zodb_file) 53 54 print "WAEUP.STRESS: configuring ZODB from %s" % ( 55 zope_conf) 56 57 db = wsgi_config(zope_conf) 58 59 # The way to configure a ZODB if only a single ZODB has to be set up. 60 #context = config(config_file) 61 #db = database(zodb_file) 62 49 63 conn = db.open() 50 64 root = conn.root()
Note: See TracChangeset for help on using the changeset viewer.