[Zope-dev] Re: SVN: Zope/branches/2.9/ deprecated FastCGI

Philipp von Weitershausen philipp at weitershausen.de
Tue Dec 6 07:58:57 EST 2005


Andreas Jung wrote:
> Log message for revision 40469:
>   deprecated FastCGI
>   
> 
> Changed:
>   U   Zope/branches/2.9/doc/CHANGES.txt
>   U   Zope/branches/2.9/doc/WEBSERVER.txt
>   U   Zope/branches/2.9/lib/python/ZServer/datatypes.py
> 

[snip]

> Modified: Zope/branches/2.9/lib/python/ZServer/datatypes.py
> ===================================================================
> --- Zope/branches/2.9/lib/python/ZServer/datatypes.py	2005-12-02 13:45:58 UTC (rev 40468)
> +++ Zope/branches/2.9/lib/python/ZServer/datatypes.py	2005-12-02 13:49:55 UTC (rev 40469)
> @@ -132,6 +132,11 @@
>  
>  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

Andreas,

this checkin made the tests fail for the build-bot
(http://mail.zope.org/pipermail/zope-tests/2005-December/003728.html).
Since you didn't use stacklevel=2 in the warnings.warn() call, it's hard
to see where FCGIServerFactory() is called from. Maybe tests?

Philipp


More information about the Zope-Dev mailing list