Commit 9fcfd7c3 authored by 's avatar

- removed redundant Globals.DevelopmentMode initializations (setConfiguration...

- removed redundant Globals.DevelopmentMode initializations (setConfiguration is responsible for this)
parent 128964b7
......@@ -11,7 +11,6 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
""" Startup package. Responsible for startup configuration of Zope """
import logging
......@@ -123,10 +122,8 @@ class ZopeStarter:
logger.error(msg)
def setupPublisher(self):
import Globals # to set data
import ZPublisher.HTTPRequest
import ZPublisher.Publish
Globals.DevelopmentMode = self.cfg.debug_mode
ZPublisher.Publish.set_default_debug_mode(self.cfg.debug_mode)
ZPublisher.Publish.set_default_authentication_realm(
self.cfg.http_realm)
......
......@@ -20,8 +20,6 @@ def _setenv(name, value):
def debug_mode(value):
value and _setenv('Z_DEBUG_MODE', '1')
import Globals # to set value
Globals.DevelopmentMode = bool(value)
return value
def locale(value):
......
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