paste_app_factory now use the the password_file option to create the app.

Without this the package upload was not working.
This commit is contained in:
Juan A. Diaz 2012-08-16 00:38:49 -03:00
parent e4935f095e
commit 205115e42e
1 changed files with 2 additions and 1 deletions

View File

@ -36,4 +36,5 @@ def paste_app_factory(global_config, **local_conf):
root = os.path.expanduser(root)
redirect_to_fallback = local_conf.get("redirect_to_fallback", "").lower() in ("yes", "on", "1")
fallback_url = local_conf.get("fallback_url")
return app(root=root, redirect_to_fallback=redirect_to_fallback, fallback_url=fallback_url)
password_file = local_conf.get("password_file")
return app(root=root, redirect_to_fallback=redirect_to_fallback, fallback_url=fallback_url, password_file=password_file)