From c105d8bfcc0e9762663b4a4d22a66deea2f82ac8 Mon Sep 17 00:00:00 2001 From: ianb Date: Fri, 25 May 2007 02:27:57 +0000 Subject: Fix for #174; Paste Deploy entry point for paste.auth.form broken --- paste/auth/form.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'paste/auth') 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 -- cgit v1.2.1