diff options
Diffstat (limited to 'paste/auth')
-rw-r--r-- | paste/auth/form.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/paste/auth/form.py b/paste/auth/form.py index 0417b38..4e6aa49 100644 --- a/paste/auth/form.py +++ b/paste/auth/form.py @@ -137,7 +137,12 @@ def make_form(app, global_conf, realm, authfunc, **kw): import types authfunc = eval_import(authfunc) assert isinstance(authfunc, types.FunctionType), "authfunc must resolve to a function" - return AuthFormHandler(app, realm, authfunc) + template = kw.get('template') + if template is not None: + template = eval_import(template) + assert isinstance(template, str), "template must resolve to a string" + + return AuthFormHandler(app, authfunc, template) if "__main__" == __name__: import doctest |