Browse Source

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

remotes/origin/help first-installed
Jan Dittberner 13 years ago
parent
commit
e9493b6fb0
  1. 4
      ddportfolioservice/ddportfolio.py

4
ddportfolioservice/ddportfolio.py

@ -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…
Cancel
Save