Commit 8bfcdd41 authored by Andreas Jung's avatar Andreas Jung

moved FCGI deprecation warning into FCGIServerFactory

parent ef4a1ea5
...@@ -48,10 +48,6 @@ import socket, string, os, sys, time ...@@ -48,10 +48,6 @@ import socket, string, os, sys, time
import thread import thread
from types import StringTypes 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() tz_for_log = compute_timezone_for_log()
#---------------------------------------------------------------------- #----------------------------------------------------------------------
......
...@@ -132,6 +132,12 @@ class PCGIServerFactory(ServerFactory): ...@@ -132,6 +132,12 @@ class PCGIServerFactory(ServerFactory):
class FCGIServerFactory(ServerFactory): class FCGIServerFactory(ServerFactory):
def __init__(self, section): 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 import socket
if section.address.family == socket.AF_INET: if section.address.family == socket.AF_INET:
address = section.address.address address = section.address.address
......
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