Changed view name
authorThierry Florac <thierry.florac@onf.fr>
Wed, 11 Mar 2015 12:14:35 +0100
changeset 23 3762a2d03432
parent 22 485cc79beb30
child 24 7ed8fb9b132c
Changed view name
src/pyams_security/zmi/plugin/admin.py
--- a/src/pyams_security/zmi/plugin/admin.py	Tue Mar 03 16:46:40 2015 +0100
+++ b/src/pyams_security/zmi/plugin/admin.py	Wed Mar 11 12:14:35 2015 +0100
@@ -51,11 +51,11 @@
 
     label = _("Add admin authentication...")
     label_css_class = 'fa fa-fw fa-support'
-    url = 'add_admin_authentication.html'
+    url = 'add-admin-authentication.html'
     modal_target = True
 
 
-@pagelet_config(name='add_admin_authentication.html', context=ISite, layer=IPyAMSLayer,
+@pagelet_config(name='add-admin-authentication.html', context=ISite, layer=IPyAMSLayer,
                 permission='system.manage')
 class AdminAuthenticationAddForm(AdminDialogAddForm):
     """Admin authentication plug-in add form"""
@@ -65,7 +65,7 @@
     icon_css_class = 'fa fa-fw fa-support'
 
     fields = field.Fields(IAdminAuthenticationPlugin).omit('__name__', '__parent__')
-    ajax_handler = 'add_admin_authentication.json'
+    ajax_handler = 'add-admin-authentication.json'
     edit_permission = 'system.manage'
 
     def create(self, data):
@@ -88,7 +88,7 @@
         event.form.widgets.errors += (Invalid(_("Specified prefix is already used!")),)
 
 
-@view_config(name='add_admin_authentication.json', context=ISite, request_type=IPyAMSLayer,
+@view_config(name='add-admin-authentication.json', context=ISite, request_type=IPyAMSLayer,
              permission='system.manage', renderer='json', xhr=True)
 class AdminAuthenticationAJAXAddForm(AJAXAddForm, AdminAuthenticationAddForm):
     """Admin authentication plug-in add form, AJAX handler"""