summaryrefslogtreecommitdiff
path: root/paste/auth
diff options
context:
space:
mode:
authorianb <devnull@localhost>2007-05-25 02:27:57 +0000
committerianb <devnull@localhost>2007-05-25 02:27:57 +0000
commitc105d8bfcc0e9762663b4a4d22a66deea2f82ac8 (patch)
tree351aedcdfe0089de1d6c050917f72f4b07c861a5 /paste/auth
parent8451a9b6741d615075ee97a560c4173a4e25c862 (diff)
downloadpaste-c105d8bfcc0e9762663b4a4d22a66deea2f82ac8.tar.gz
Fix for #174; Paste Deploy entry point for paste.auth.form broken
Diffstat (limited to 'paste/auth')
-rw-r--r--paste/auth/form.py7
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