rename app(...) to application(...) to make WSGIScriptAlias work

This commit is contained in:
Jan Dittberner 2009-01-20 17:31:56 +01:00
parent 2cf7e9d67a
commit e9493b6fb0

View file

@ -25,7 +25,7 @@ def build_urls(fields):
print "unable to parse %s: %s" % (my_config.get(section, url + '.pattern', True), e)
return result
def app(environ, start_response):
def application(environ, start_response):
fields = parse_formvars(environ)
if environ['REQUEST_METHOD'] == 'POST':
data = build_urls(fields)
@ -65,4 +65,4 @@ def app(environ, start_response):
if __name__ == '__main__':
from paste import httpserver
httpserver.serve(app, host='127.0.0.1', port='8080')
httpserver.serve(application, host='127.0.0.1', port='8080')