summaryrefslogtreecommitdiffstats
path: root/authentic/admin/settings.ptl
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-11-23 12:47:00 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-11-23 12:47:00 (GMT)
commit9b3103b96f1388048eaac57ae9ca3de9915d42a5 (patch)
tree63c8eb7da54c89a49052037d84f8221bb42586eb /authentic/admin/settings.ptl
parent3dc776d7ff465ac19ade5c979270bce111bdc2c3 (diff)
downloadauthentic-old-9b3103b96f1388048eaac57ae9ca3de9915d42a5.zip
authentic-old-9b3103b96f1388048eaac57ae9ca3de9915d42a5.tar.gz
authentic-old-9b3103b96f1388048eaac57ae9ca3de9915d42a5.tar.bz2
[admin settings] extract new provider form into its own method
Diffstat (limited to 'authentic/admin/settings.ptl')
-rw-r--r--authentic/admin/settings.ptl6
1 files changed, 5 insertions, 1 deletions
diff --git a/authentic/admin/settings.ptl b/authentic/admin/settings.ptl
index 8e86292..9ca1301 100644
--- a/authentic/admin/settings.ptl
+++ b/authentic/admin/settings.ptl
@@ -114,7 +114,7 @@ class LibertyProvidersDir(Directory):
get_publisher().reload_cfg()
return LibertyProviderUI(component)
- def new [html] (self):
+ def new_form(self):
form = Form(enctype='multipart/form-data')
if get_cfg('idp', {}).get('idff_proxy'):
form.add(SingleSelectWidget, 'role', title = _('Role'), required=True,
@@ -144,6 +144,10 @@ class LibertyProvidersDir(Directory):
form.add_submit('submit', _('Submit'))
form.add_submit('cancel', _('Cancel'))
+ return form
+
+ def new [html] (self):
+ form = self.new_form()
if form.get_submit() == 'cancel':
return redirect('.')