Renamed function
authorThierry Florac <thierry.florac@onf.fr>
Fri, 06 Apr 2018 12:07:45 +0200
changeset 523 193ad9281a1c
parent 522 73e404a01d95
child 524 6de7d0a3a77d
Renamed function
src/pyams_content/component/paragraph/zmi/keynumber.py
--- a/src/pyams_content/component/paragraph/zmi/keynumber.py	Fri Apr 06 11:54:25 2018 +0200
+++ b/src/pyams_content/component/paragraph/zmi/keynumber.py	Fri Apr 06 12:07:45 2018 +0200
@@ -256,8 +256,8 @@
 
 @view_config(name='switch-keynumber-visibility.json', context=IKeyNumberContainer, request_type=IPyAMSLayer,
              permission=MANAGE_CONTENT_PERMISSION, renderer='json', xhr=True)
-def set_keynumber_visibility(request):
-    """Set key number visibility"""
+def switch_keynumber_visibility(request):
+    """Switch key number visibility"""
     return switch_element_visibility(request, IKeyNumberContainer)