Commit b9778d64 authored by Andreas Jung's avatar Andreas Jung

removed ZOPE_CONFIG patch for collector #1233 since it broke ZopeTestCase

parent e1cc4d94
......@@ -20,6 +20,8 @@ Zope Changes
- Change acquisition wrappers to implement the descr get slot
directly, thus speeding the use of the slot.
- Collector #1233: port ZOPE_CONFIG patch from Zope 2.7 to Zope 2.8
after Zope 2.8b1
......@@ -29,8 +31,6 @@ Zope Changes
Bugs fixed
- Collector #1233: ported ZOPE_CONFIG patch from Zope 2.7 to Zope 2.8
- Collector #1751: Improved error reporting reporting during the
startup phase
......
......@@ -24,7 +24,3 @@ class ZopeOptions(zdaemon.zdoptions.ZDOptions):
schemadir = os.path.dirname(os.path.abspath(__file__))
schemafile = "zopeschema.xml"
def default_configfile(self):
"""Use ZOPE_CONFIG if specified and -C not passed."""
return os.environ.get('ZOPE_CONFIG')
......@@ -42,9 +42,8 @@ def startup():
# Already began (and maybe finished) startup, so don't run again
return
_began_startup = 1
from Zope2.Startup.run import _setconfig
_configure()
from Zope2.App.startup import startup as _startup
_setconfig()
_startup()
def app(*args, **kw):
......@@ -59,7 +58,14 @@ def debug(*args, **kw):
return ZPublisher.test('Zope', *args, **kw)
from Zope2.Startup.run import configure
def _configure():
# Load configuration file from (optional) environment variable
# Also see http://zope.org/Collectors/Zope/1233
import os
configfile = os.environ.get('ZOPE_CONFIG')
if configfile is not None:
configure(configfile)
# Zope2.App.startup.startup() sets the following variables in this module.
DB = None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment