[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/server/main.py Make
devmode work with standard zope server (i.e., not twisted).
Gary Poster
gary at zope.com
Mon Dec 12 16:59:54 EST 2005
Log message for revision 40759:
Make devmode work with standard zope server (i.e., not twisted).
Changed:
U Zope3/trunk/src/zope/app/server/main.py
-=-
Modified: Zope3/trunk/src/zope/app/server/main.py
===================================================================
--- Zope3/trunk/src/zope/app/server/main.py 2005-12-12 21:45:23 UTC (rev 40758)
+++ Zope3/trunk/src/zope/app/server/main.py 2005-12-12 21:59:54 UTC (rev 40759)
@@ -98,9 +98,13 @@
options.eventlog()
options.accesslog()
- zope.app.appsetup.config(options.site_definition,
- features=('zserver',))
+ features = ('zserver',)
+ # Provide the devmode, if activated
+ if options.devmode:
+ features += ('devmode',)
+ zope.app.appsetup.config(options.site_definition, features=features)
+
db = zope.app.appsetup.appsetup.multi_database(options.databases)[0][0]
notify(zope.app.appsetup.interfaces.DatabaseOpened(db))
More information about the Zope3-Checkins
mailing list