summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Bicking <ian@ianbicking.org>2005-08-22 21:50:35 +0000
committerIan Bicking <ian@ianbicking.org>2005-08-22 21:50:35 +0000
commit26e0d9d14946951de27e3beed2a517e1ede03c4e (patch)
tree0355415a87cbb46282aa8613c578b08b899f807e
parentfc4b6bba66e28ae50819030ca428f7f066540a88 (diff)
downloadpaste-git-26e0d9d14946951de27e3beed2a517e1ede03c4e.tar.gz
Removed some more deprecated stuff
-rw-r--r--paste/default_config.conf30
-rw-r--r--paste/echo.py59
2 files changed, 0 insertions, 89 deletions
diff --git a/paste/default_config.conf b/paste/default_config.conf
deleted file mode 100644
index 2812bc1..0000000
--- a/paste/default_config.conf
+++ /dev/null
@@ -1,30 +0,0 @@
-# -*- python -*- Note: this file is in Python syntax
-
-index_names = ['index', 'Index', 'main', 'Main']
-sys_path = []
-framework = 'default'
-# The first middleware in this list is wrapped most closely around
-# the application:
-middleware = []
-# This middleware comes right after config_middleware, and before all
-# other middleware:
-important_middleware = []
-port = 8080
-host = 'localhost'
-verbose = False
-quiet = False
-reload = False
-
-import sys
-sys_path = sys.path
-
-package_urls = {
- 'wsgiutils': 'http://www.owlfish.com/software/wsgiutils/downloads/WSGI%20Utils-0.5.tar.gz',
- 'ZPTKit': 'http://svn.w4py.org/ZPTKit/trunk',
- 'LoginKit': 'http://svn.w4py.org/LoginKit/trunk',
- 'ZopePageTemplates': 'http://prdownloads.sourceforge.net/zpt/ZopePageTemplates-1.4.0.tgz?download',
- 'scgi': 'http://www.mems-exchange.org/software/files/scgi/scgi-1.2.tar.gz',
- 'sqlobject': 'http://svn.colorstudy.com/trunk/SQLObject',
- }
-
-app_packages = 'app-packages'
diff --git a/paste/echo.py b/paste/echo.py
deleted file mode 100644
index 1a1c91f..0000000
--- a/paste/echo.py
+++ /dev/null
@@ -1,59 +0,0 @@
-r"""\
-WSGI application
-
-Does things as requested. Takes variables:
-
-header.header-name=value, like
- header.location=http://yahoo.com
-
-error=code, like
- error=301 (temporary redirect)
- error=assert (assertion error)
-
-environ=true,
- display all the environmental variables, like
- key=str(value)\n
-
-message=string
- display string
-"""
-
-import cgi
-import httpexceptions
-
-def application(environ, start_response):
- form = cgi.FieldStorage(fp=environ['wsgi.input'],
- environ=environ,
- keep_blank_values=True)
- headers = {}
- for key in form.keys():
- if key.startswith('header.'):
- headers[key[len('header.'):]] = form[key].value
-
- if form.getvalue('error') and form['error'].value != 'iter':
- if form['error'].value == 'assert':
- assert 0, "I am asserting zero!"
- raise httpexceptions.get_exception(int(form['error'].value))(
- headers=headers)
-
- if form.getvalue('environ'):
- write = start_response('200 OK', [('Content-type', 'text/plain')])
- items = environ.items()
- items.sort()
- return ['%s=%s\n' % (name, value)
- for name, value in items]
-
- if form.has_key('message'):
- write = start_response('200 OK', [('Content-type', 'text/plain')])
- write(form['message'].value)
- return []
-
- if form.getvalue('error') == 'iter':
- return BadIter()
-
- write = start_response('200 OK', [('Content-type', 'text/html')])
- return ['hello world!']
-
-class BadIter(object):
- def __iter__(self):
- assert 0, "I am assert zero in the iterator!"