diff options
| author | ianb <devnull@localhost> | 2005-08-22 22:05:12 +0000 |
|---|---|---|
| committer | ianb <devnull@localhost> | 2005-08-22 22:05:12 +0000 |
| commit | f1ad4435a305fc37243560a0b92d657a5acaf02b (patch) | |
| tree | ce3e66de4676a23920a6cc5fa8f42394694dced4 /paste/login.py | |
| parent | d75fabca725129140983d3f928bdacccb98db59b (diff) | |
| download | paste-f1ad4435a305fc37243560a0b92d657a5acaf02b.tar.gz | |
Make global_conf optional (fixes tests)
Diffstat (limited to 'paste/login.py')
| -rw-r--r-- | paste/login.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/paste/login.py b/paste/login.py index e73a121..3fe9890 100644 --- a/paste/login.py +++ b/paste/login.py @@ -11,7 +11,7 @@ from paste.util import import_string def middleware( application, - global_conf, + global_conf=None, http_login=False, http_realm='Secure Website', http_overwrite_realm=True, @@ -84,6 +84,7 @@ def middleware( relative, else undefined. Used where? """ + global_conf = global_conf or {} http_login = converters.asbool(http_login) http_overwrite_realm = converters.asbool(http_overwrite_realm) http_and_cookie = converters.asbool(http_and_cookie) |
