forked from Pylons/waitress
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ca89e19
Showing
72 changed files
with
8,206 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
======= | ||
CHANGES | ||
======= | ||
|
||
3.8.6 (unreleased) | ||
------------------ | ||
|
||
- Nothing changed yet. | ||
|
||
|
||
3.8.5 (2011-09-13) | ||
------------------ | ||
|
||
- fixed bug: requests lasting over 15 minutes were sometimes closed | ||
prematurely. | ||
|
||
3.8.4 (2011-06-07) | ||
------------------ | ||
|
||
- Fix syntax error in tests on Python < 2.6. | ||
|
||
|
||
3.8.3 (2011-05-18) | ||
------------------ | ||
|
||
- Made ``start_response`` method of WSGI server implementation more compliant | ||
with spec: | ||
|
||
http://www.python.org/dev/peps/pep-0333/#the-start-response-callable | ||
|
||
3.8.2 (2010-12-04) | ||
------------------ | ||
|
||
- Corrected license version in ``zope/server/http/tests/test_wsgiserver.py``. | ||
|
||
3.8.1 (2010-08-24) | ||
------------------ | ||
|
||
- When the result of a WSGI application was received, ``task.write()`` was | ||
only called once to transmit the data. This prohibited the transmission of | ||
partial results. Now the WSGI server iterates through the result itself | ||
making multiple ``task.write()`` calls, which will cause partial data to be | ||
transmitted. | ||
|
||
- Created a second test case instance for the post-mortem WSGI server, so it | ||
is tested as well. | ||
|
||
- Using python's ``doctest`` module instead of deprecated | ||
``zope.testing.doctest``. | ||
|
||
3.8.0 (2010-08-05) | ||
------------------ | ||
|
||
- Implemented correct server proxy behavior. The HTTP server would always add | ||
a "Server" and "Date" response header to the list of response headers | ||
regardless whether one had been set already. The HTTP 1.1 spec specifies | ||
that a proxy server must not modify the "Server" and "Date" header but add a | ||
"Via" header instead. | ||
|
||
3.7.0 (2010-08-01) | ||
------------------ | ||
|
||
- Implemented proxy support. Proxy requests contain a full URIs and the | ||
request parser used to throw that information away. Using | ||
``urlparse.urlsplit()``, all pieces of the URL are recorded. | ||
|
||
- The proxy acheme and netloc/hostname are exposed in the WSGI environment as | ||
``zserver.proxy.scheme`` and ``zserver.proxy.host``. | ||
|
||
- Made tests runnable via buildout again. | ||
|
||
3.6.2 (2010-06-11) | ||
------------------ | ||
|
||
- The log message "Exception during task" is no longer logged to the root | ||
logger but to zope.server.taskthreads. | ||
|
||
|
||
3.6.1 (2009-10-07) | ||
------------------ | ||
|
||
- Made tests pass with current zope.publisher which restricts redirects to the | ||
current host by default. | ||
|
||
|
||
3.6.0 (2009-05-27) | ||
------------------ | ||
|
||
- Moved some imports from test modules to their setUp to prevent | ||
failures when ZEO tests are run by the same testrunner | ||
|
||
- Removed unused dependency on zope.deprecation. | ||
|
||
- Remove old zpkg-related DEPENDENCIES.cfg file. | ||
|
||
|
||
3.5.0 (2008-03-01) | ||
------------------ | ||
|
||
- Improve package meta-data. | ||
|
||
- Fix of 599 error on conflict error in request | ||
see: http://mail.zope.org/pipermail/zope-dev/2008-January/030844.html | ||
|
||
- Removed dependency on ZODB. | ||
|
||
|
||
3.5.0a2 (2007-06-02) | ||
-------------------- | ||
|
||
- Made WSGI server really WSGI-compliant by adding variables to the | ||
environment that are required by the spec. | ||
|
||
|
||
3.5.0a1 (2007-06-02) | ||
-------------------- | ||
|
||
- Added a factory and entry point for PasteDeploy. | ||
|
||
|
||
3.4.3 (2008-08-18) | ||
------------------ | ||
|
||
- Moved some imports from test modules to their setUp to prevent | ||
failures when ZEO tests are run by the same testrunner | ||
|
||
|
||
3.4.2 (2008-02-02) | ||
------------------ | ||
|
||
- Fix of 599 error on conflict error in request | ||
see: http://mail.zope.org/pipermail/zope-dev/2008-January/030844.html | ||
|
||
|
||
3.4.1 (2007-06-02) | ||
------------------ | ||
|
||
- Made WSGI server really WSGI-compliant by adding variables to the | ||
environment that are required by the spec. | ||
|
||
|
||
3.4.0 (2007-06-02) | ||
------------------ | ||
|
||
- Removed an unused import. Unchanged otherwise. | ||
|
||
|
||
3.4.0a1 (2007-04-22) | ||
-------------------- | ||
|
||
- Initial release as a separate project, corresponds to zope.server | ||
from Zope 3.4.0a1 | ||
|
||
- Made WSGI server really WSGI-compliant by adding variables to the | ||
environment that are required by the spec. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Zope Foundation and Contributors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
Zope Public License (ZPL) Version 2.1 | ||
|
||
A copyright notice accompanies this license document that identifies the | ||
copyright holders. | ||
|
||
This license has been certified as open source. It has also been designated as | ||
GPL compatible by the Free Software Foundation (FSF). | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
||
1. Redistributions in source code must retain the accompanying copyright | ||
notice, this list of conditions, and the following disclaimer. | ||
|
||
2. Redistributions in binary form must reproduce the accompanying copyright | ||
notice, this list of conditions, and the following disclaimer in the | ||
documentation and/or other materials provided with the distribution. | ||
|
||
3. Names of the copyright holders must not be used to endorse or promote | ||
products derived from this software without prior written permission from the | ||
copyright holders. | ||
|
||
4. The right to distribute this software or to use it for any purpose does not | ||
give you the right to use Servicemarks (sm) or Trademarks (tm) of the | ||
copyright | ||
holders. Use of them is covered by separate agreement with the copyright | ||
holders. | ||
|
||
5. If any files are modified, you must cause the modified files to carry | ||
prominent notices stating that you changed the files and the date of any | ||
change. | ||
|
||
Disclaimer | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED | ||
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | ||
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO | ||
EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | ||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | ||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, | ||
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
This package contains generic base classes for channel-based servers, the | ||
servers themselves and helper objects, such as tasks and requests. | ||
|
||
============ | ||
WSGI Support | ||
============ | ||
|
||
`zope.server`'s HTTP server comes with WSGI_ support. | ||
``zope.server.http.wsgihttpserver.WSGIHTTPServer`` can act as a WSGI gateway. | ||
There's also an entry point for PasteDeploy_ that lets you use zope.server's | ||
WSGI gateway from a configuration file, e.g.:: | ||
|
||
[server:main] | ||
use = egg:zope.server | ||
host = 127.0.0.1 | ||
port = 8080 | ||
|
||
.. _WSGI: http://www.python.org/dev/peps/pep-0333/ | ||
.. _PasteDeploy: http://pythonpaste.org/deploy/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
############################################################################## | ||
# | ||
# Copyright (c) 2006 Zope Foundation and Contributors. | ||
# All Rights Reserved. | ||
# | ||
# This software is subject to the provisions of the Zope Public License, | ||
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. | ||
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED | ||
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS | ||
# FOR A PARTICULAR PURPOSE. | ||
# | ||
############################################################################## | ||
"""Bootstrap a buildout-based project | ||
Simply run this script in a directory containing a buildout.cfg. | ||
The script accepts buildout command-line options, so you can | ||
use the -c option to specify an alternate configuration file. | ||
""" | ||
|
||
import os, shutil, sys, tempfile, urllib2 | ||
|
||
tmpeggs = tempfile.mkdtemp() | ||
|
||
ez = {} | ||
exec urllib2.urlopen('http://peak.telecommunity.com/dist/ez_setup.py' | ||
).read() in ez | ||
ez['use_setuptools'](to_dir=tmpeggs, download_delay=0) | ||
|
||
import pkg_resources | ||
|
||
cmd = 'from setuptools.command.easy_install import main; main()' | ||
if sys.platform == 'win32': | ||
cmd = '"%s"' % cmd # work around spawn lamosity on windows | ||
|
||
ws = pkg_resources.working_set | ||
assert os.spawnle( | ||
os.P_WAIT, sys.executable, sys.executable, | ||
'-c', cmd, '-mqNxd', tmpeggs, 'zc.buildout', | ||
dict(os.environ, | ||
PYTHONPATH= | ||
ws.find(pkg_resources.Requirement.parse('setuptools')).location | ||
), | ||
) == 0 | ||
|
||
ws.add_entry(tmpeggs) | ||
ws.require('zc.buildout') | ||
import zc.buildout.buildout | ||
zc.buildout.buildout.main(sys.argv[1:] + ['bootstrap']) | ||
shutil.rmtree(tmpeggs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[buildout] | ||
develop = . | ||
parts = test paste-test | ||
|
||
[paste-test] | ||
recipe = zc.recipe.egg | ||
eggs = zope.server | ||
PasteDeploy | ||
PasteScript | ||
|
||
[test] | ||
recipe = zc.recipe.testrunner | ||
eggs = zope.server [test] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
############################################################################## | ||
# | ||
# Copyright (c) 2006 Zope Foundation and Contributors. | ||
# All Rights Reserved. | ||
# | ||
# This software is subject to the provisions of the Zope Public License, | ||
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. | ||
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED | ||
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS | ||
# FOR A PARTICULAR PURPOSE. | ||
# | ||
############################################################################## | ||
# This package is developed by the Zope Toolkit project, documented here: | ||
# http://docs.zope.org/zopetoolkit | ||
# When developing and releasing this package, please follow the documented | ||
# Zope Toolkit policies as described by this documentation. | ||
############################################################################## | ||
"""Setup for zope.server package | ||
""" | ||
import os | ||
from setuptools import setup, find_packages | ||
|
||
def read(*rnames): | ||
return open(os.path.join(os.path.dirname(__file__), *rnames)).read() | ||
|
||
|
||
tests_require = [ | ||
'zope.testing', | ||
'zope.i18n', | ||
'zope.component', | ||
] | ||
|
||
|
||
setup( | ||
name='zope.server', | ||
version='3.8.6dev', | ||
author='Zope Foundation and Contributors', | ||
author_email='[email protected]', | ||
description='Zope Server (Web and FTP)', | ||
long_description=( | ||
read('README.txt') | ||
+ '\n\n' + | ||
read('CHANGES.txt') | ||
), | ||
license='ZPL 2.1', | ||
keywords=('zope3 server http ftp'), | ||
classifiers = [ | ||
'Development Status :: 5 - Production/Stable', | ||
'Environment :: Web Environment', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: Zope Public License', | ||
'Programming Language :: Python', | ||
'Natural Language :: English', | ||
'Operating System :: OS Independent', | ||
'Topic :: Internet :: WWW/HTTP', | ||
'Framework :: Zope3'], | ||
url='http://pypi.python.org/pypi/zope.server', | ||
packages=find_packages('src'), | ||
package_dir = {'': 'src'}, | ||
namespace_packages=['zope',], | ||
tests_require=tests_require, | ||
install_requires=[ | ||
'setuptools', | ||
'zope.interface', | ||
'zope.publisher', | ||
'zope.security', | ||
], | ||
extras_require=dict(test=tests_require), | ||
include_package_data=True, | ||
zip_safe=False, | ||
entry_points=""" | ||
[paste.server_runner] | ||
main = zope.server.http.wsgihttpserver:run_paste | ||
""" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__import__('pkg_resources').declare_namespace(__name__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
############################################################################## | ||
# | ||
# Copyright (c) 2001, 2002 Zope Foundation and Contributors. | ||
# All Rights Reserved. | ||
# | ||
# This software is subject to the provisions of the Zope Public License, | ||
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. | ||
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED | ||
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS | ||
# FOR A PARTICULAR PURPOSE. | ||
# | ||
############################################################################## | ||
"""Zope 3's Servers | ||
This package contains generic base classes for channel-based servers, the | ||
servers themselves and helper objects, such as tasks and requests. | ||
""" | ||
import asyncore | ||
|
||
from zope.server.interfaces import IDispatcher | ||
from zope.interface import classImplements | ||
|
||
# Tell the the async.dispatcher that it implements IDispatcher. | ||
classImplements(asyncore.dispatcher, IDispatcher) |
Oops, something went wrong.