Hi Marc,
Marc Balmer wrote on Sun, Mar 25, 2007 at 04:38:29PM +0200:
> There are new Zope version out for all major branches, I would like to
> update it in -current and -stable, however... these new versions drive
> me nuts: when I start a zope in foreground (bin/zopectl foreground)
> everything works. When I start it as daemon (bin/zopectl start), it
> won't work, the process terminates.
>
> Maybe someone out there finds the reason for this? Then let me know ;)
Python import statements are evil when buried deep inside try.
Anyway, here you are.
Enjoy,
Ingo
# patch-lib_python_App_ApplicationManager_py:
# The @postonly decorator inspects keyargs for REQUEST=.
# Avoid crash while importing App.ApplicationManager
# while importing OFS.Application
# while importing Zope2.App.startup
# while running Zope2.__init__.startup in ZMANAGED mode
$OpenBSD$
--- lib/python/App/ApplicationManager.py.orig Sun Mar 25 11:46:22 2007
+++ lib/python/App/ApplicationManager.py Mon Mar 26 01:41:11 2007
@@ -390,7 +390,7 @@ class ApplicationManager(Folder,CacheManager):
if os.environ.has_key('ZMANAGED'):
manage_restartable=1
@postonly
- def manage_restart(self, URL1):
+ def manage_restart(self, URL1, REQUEST=None):
"""Shut down the application"""
try:
user = '"%s"' % getSecurityManager().getUser().getUserName()