[Zope-Checkins] SVN: Zope/trunk/src/Zope2/Startup/ - removed redundant Globals.DevelopmentMode initializations (setConfiguration is responsible for this)
Yvo Schubbe
y.2011 at wcm-solutions.de
Mon Mar 7 05:24:43 EST 2011
Log message for revision 120774:
- removed redundant Globals.DevelopmentMode initializations (setConfiguration is responsible for this)
Changed:
UU Zope/trunk/src/Zope2/Startup/__init__.py
UU Zope/trunk/src/Zope2/Startup/handlers.py
-=-
Modified: Zope/trunk/src/Zope2/Startup/__init__.py
===================================================================
--- Zope/trunk/src/Zope2/Startup/__init__.py 2011-03-07 10:12:24 UTC (rev 120773)
+++ Zope/trunk/src/Zope2/Startup/__init__.py 2011-03-07 10:24:42 UTC (rev 120774)
@@ -11,7 +11,6 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
-
""" Startup package. Responsible for startup configuration of Zope """
import logging
@@ -123,10 +122,8 @@
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)
Property changes on: Zope/trunk/src/Zope2/Startup/__init__.py
___________________________________________________________________
Deleted: cvs2svn:cvs-rev
- 1.25
Modified: Zope/trunk/src/Zope2/Startup/handlers.py
===================================================================
--- Zope/trunk/src/Zope2/Startup/handlers.py 2011-03-07 10:12:24 UTC (rev 120773)
+++ Zope/trunk/src/Zope2/Startup/handlers.py 2011-03-07 10:24:42 UTC (rev 120774)
@@ -20,8 +20,6 @@
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):
Property changes on: Zope/trunk/src/Zope2/Startup/handlers.py
___________________________________________________________________
Deleted: cvs2svn:cvs-rev
- 1.17
More information about the Zope-Checkins
mailing list