[Zope-Checkins] SVN: Zope/trunk/lib/python/ZServer/ moved FCGI deprecation warning into FCGIServerFactory

Andreas Jung andreas at andreas-jung.com
Fri Dec 2 08:35:49 EST 2005


Log message for revision 40467:
  moved FCGI deprecation warning into FCGIServerFactory
  

Changed:
  U   Zope/trunk/lib/python/ZServer/FCGIServer.py
  U   Zope/trunk/lib/python/ZServer/datatypes.py

-=-
Modified: Zope/trunk/lib/python/ZServer/FCGIServer.py
===================================================================
--- Zope/trunk/lib/python/ZServer/FCGIServer.py	2005-12-02 13:29:46 UTC (rev 40466)
+++ Zope/trunk/lib/python/ZServer/FCGIServer.py	2005-12-02 13:35:48 UTC (rev 40467)
@@ -48,10 +48,6 @@
 import thread
 from types import StringTypes
 
-import warnings
-warnings.warn("Using FastCGI is deprecated. You should use mod_proxy " +
-              "to run Zope with Apache", DeprecationWarning)
-
 tz_for_log = compute_timezone_for_log()
 
 #----------------------------------------------------------------------

Modified: Zope/trunk/lib/python/ZServer/datatypes.py
===================================================================
--- Zope/trunk/lib/python/ZServer/datatypes.py	2005-12-02 13:29:46 UTC (rev 40466)
+++ Zope/trunk/lib/python/ZServer/datatypes.py	2005-12-02 13:35:48 UTC (rev 40467)
@@ -132,6 +132,12 @@
 
 class FCGIServerFactory(ServerFactory):
     def __init__(self, section):
+
+        import warnings
+        warnings.warn("Using FastCGI is deprecated. You should use mod_proxy " +
+                      "to run Zope with Apache", DeprecationWarning)
+
+
         import socket
         if section.address.family == socket.AF_INET:
             address = section.address.address



More information about the Zope-Checkins mailing list