[Zope3-checkins] CVS: Zope3/src/zope/app/startup - sitedefinition.py:1.5

Jeremy Hylton jeremy@zope.com
Tue, 28 Jan 2003 16:03:44 -0500


Update of /cvs-repository/Zope3/src/zope/app/startup
In directory cvs.zope.org:/tmp/cvs-serv2281/zope/app/startup

Modified Files:
	sitedefinition.py 
Log Message:
Add explicit register() function to interface module.

Call it when loading tests and starting the zope3 app.


=== Zope3/src/zope/app/startup/sitedefinition.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/startup/sitedefinition.py:1.4	Mon Dec 30 21:52:09 2002
+++ Zope3/src/zope/app/startup/sitedefinition.py	Tue Jan 28 16:03:10 2003
@@ -29,6 +29,7 @@
 from zope.configuration.interfaces import INonEmptyDirective
 from zope.configuration.interfaces import ISubdirectiveHandler
 
+from zope.app.startup import bootstrap
 from zope.app.startup.servertyperegistry import getServerType
 
 # Import Undo-related classes
@@ -40,6 +41,7 @@
 from zope.server.taskthreads import ThreadedTaskDispatcher
 
 from zodb.code.module import PersistentModuleImporter
+from zope.app.services.interface import register
 
 DEFAULT_STORAGE_FILE = 'Data.fs'
 DEFAULT_LOG_FILE = 'STDERR'
@@ -196,12 +198,11 @@
     def _initDB(self):
         """Initialize the ZODB and persistence module importer."""
 
-        from zope.app.startup import bootstrap
         bootstrap.bootstrapInstance(self._zodb)
 
         imp = PersistentModuleImporter()
         imp.install()
-
+        register()
 
     def __call__(self):
         "Handle empty/simple declaration."