rename app(...) to application(...) to make WSGIScriptAlias work
This commit is contained in:
parent
2cf7e9d67a
commit
e9493b6fb0
1 changed files with 2 additions and 2 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue