Mercurial > summit-idp
changeset 29:818e16d3f262
renamed build_app to make_wsgi_app
author | Atul Varma <avarma@mozilla.com> |
---|---|
date | Fri, 25 Jun 2010 20:11:24 -0700 |
parents | 122ca25a8573 |
children | f56852d2076f |
files | server.py summitidp/easy.py |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/server.py Fri Jun 25 20:07:31 2010 -0700 +++ b/server.py Fri Jun 25 20:11:24 2010 -0700 @@ -4,13 +4,13 @@ from wsgiref.util import shift_path_info from summitidp.static_file_serving import StaticFileApp -from summitidp.easy import build_app +from summitidp.easy import make_wsgi_app def send_email(email, token): print "Please send %s an email with the token %s." % (email, token) def run_server(mydir, send_email=send_email, host='', port=8000): - api_app = build_app(os.path.join(mydir, 'storage'), send_email) + api_app = make_wsgi_app(os.path.join(mydir, 'storage'), send_email) static_files_dir = os.path.join(mydir, 'static-files') static_file_app = StaticFileApp(static_files_dir)
--- a/summitidp/easy.py Fri Jun 25 20:07:31 2010 -0700 +++ b/summitidp/easy.py Fri Jun 25 20:11:24 2010 -0700 @@ -13,7 +13,7 @@ if not os.path.exists(path): os.mkdir(path) -def build_app(storage_dir, send_email): +def make_wsgi_app(storage_dir, send_email): emails_file = os.path.join(storage_dir, 'attendees.json') challenge_dir = os.path.join(storage_dir, 'challenge-tokens') auth_dir = os.path.join(storage_dir, 'auth-tokens')