[Zope3-checkins] SVN: Zope3/trunk/ - ported fix for issue 507 from 3.3 branch

Christian Theune ct at gocept.com
Tue Aug 15 23:07:53 EDT 2006


Log message for revision 69554:
   - ported fix for issue 507 from 3.3 branch
  

Changed:
  U   Zope3/trunk/src/zope/app/appsetup/schema.xml
  U   Zope3/trunk/src/zope/app/server/main.py
  U   Zope3/trunk/src/zope/app/twisted/main.py
  U   Zope3/trunk/src/zope/app/wsgi/__init__.py
  U   Zope3/trunk/zope.conf.in
  U   Zope3/trunk/zopeskel/etc/zope.conf.in

-=-
Modified: Zope3/trunk/src/zope/app/appsetup/schema.xml
===================================================================
--- Zope3/trunk/src/zope/app/appsetup/schema.xml	2006-08-16 03:03:05 UTC (rev 69553)
+++ Zope3/trunk/src/zope/app/appsetup/schema.xml	2006-08-16 03:07:53 UTC (rev 69554)
@@ -55,16 +55,16 @@
     <metadefault>$softwarehome/src</metadefault>
   </multikey>
 
-  <key name="devmode" datatype="boolean" default="on">
+  <key name="devmode" datatype="boolean" default="off">
     <description>
       Switches the Developer Mode on and off.
 
-      In developer mode, the Web UI will provide usefull utilities for
+      In developer mode, the web UI will provide useful utilities for
       developers to work on Zope 3 applications.
     </description>
     <example>
-      devmode off
+      devmode on
     </example>
-    <metadefault>on</metadefault>
+    <metadefault>off</metadefault>
   </key>
 </schema>

Modified: Zope3/trunk/src/zope/app/server/main.py
===================================================================
--- Zope3/trunk/src/zope/app/server/main.py	2006-08-16 03:03:05 UTC (rev 69553)
+++ Zope3/trunk/src/zope/app/server/main.py	2006-08-16 03:07:53 UTC (rev 69554)
@@ -102,6 +102,9 @@
     # Provide the devmode, if activated
     if options.devmode:
         features += ('devmode',)
+        logging.warning("Developer mode is enabled: this is a security risk "
+            "and should NOT be enabled on production servers. Developer mode "
+            "can be turned off in etc/zope.conf")
 
     zope.app.appsetup.config(options.site_definition, features=features)
 

Modified: Zope3/trunk/src/zope/app/twisted/main.py
===================================================================
--- Zope3/trunk/src/zope/app/twisted/main.py	2006-08-16 03:03:05 UTC (rev 69553)
+++ Zope3/trunk/src/zope/app/twisted/main.py	2006-08-16 03:07:53 UTC (rev 69554)
@@ -133,6 +133,9 @@
     # Provide the devmode, if activated
     if options.devmode:
         features += ('devmode',)
+        logging.warning("Developer mode is enabled: this is a security risk "
+            "and should NOT be enabled on production servers. Developer mode "
+            "can be turned off in etc/zope.conf")
 
     zope.app.appsetup.config(options.site_definition, features=features)
 

Modified: Zope3/trunk/src/zope/app/wsgi/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/wsgi/__init__.py	2006-08-16 03:03:05 UTC (rev 69553)
+++ Zope3/trunk/src/zope/app/wsgi/__init__.py	2006-08-16 03:07:53 UTC (rev 69554)
@@ -18,6 +18,7 @@
 import os
 import sys
 import ZConfig
+import logging
 
 from zope.event import notify
 from zope.interface import implements
@@ -119,6 +120,9 @@
     # Insert the devmode feature, if turned on
     if options.devmode:
         features += ('devmode',)
+        logging.warning("Developer mode is enabled: this is a security risk "
+            "and should NOT be enabled on production servers. Developer mode "
+            "can be turned off in etc/zope.conf")
 
     # Configure the application
     appsetup.config(options.site_definition, features=features)

Modified: Zope3/trunk/zope.conf.in
===================================================================
--- Zope3/trunk/zope.conf.in	2006-08-16 03:03:05 UTC (rev 69553)
+++ Zope3/trunk/zope.conf.in	2006-08-16 03:07:53 UTC (rev 69554)
@@ -85,6 +85,6 @@
 #   Switches the Developer Mode on and off.
 #
 # Default:
-#   devmode on
+#   devmode off
 #
-# devmode off
+# devmode on

Modified: Zope3/trunk/zopeskel/etc/zope.conf.in
===================================================================
--- Zope3/trunk/zopeskel/etc/zope.conf.in	2006-08-16 03:03:05 UTC (rev 69553)
+++ Zope3/trunk/zopeskel/etc/zope.conf.in	2006-08-16 03:07:53 UTC (rev 69554)
@@ -114,6 +114,6 @@
 #   Switches the Developer Mode on and off.
 #
 # Default:
-#   devmode on
+#   devmode off
 #
-#devmode off
+#devmode on



More information about the Zope3-Checkins mailing list