Renamed factories to use snake_case on functions
authorThierry Florac <thierry.florac@onf.fr>
Wed, 28 Mar 2018 15:47:50 +0200
changeset 22 87eb62630b15
parent 21 7cdf0849fe46
child 23 cf73769b3875
Renamed factories to use snake_case on functions
src/pyams_default_theme/component/illustration/__init__.py
src/pyams_default_theme/component/paragraph/contact.py
src/pyams_default_theme/component/paragraph/frame.py
src/pyams_default_theme/component/paragraph/verbatim.py
--- a/src/pyams_default_theme/component/illustration/__init__.py	Wed Mar 28 15:29:13 2018 +0200
+++ b/src/pyams_default_theme/component/illustration/__init__.py	Wed Mar 28 15:47:50 2018 +0200
@@ -49,7 +49,7 @@
 
 
 @adapter_config(context=IIllustration, provides=IIllustrationWithZoomSettings)
-def IllustrationWithZoomSettingsFactory(context):
+def illustration_with_zoom_settings_factory(context):
     """Illustration zoom renderer settings factory"""
     annotations = IAnnotations(context)
     settings = annotations.get(ILLUSTRATION_ZOOM_RENDERER_SETTINGS_KEY)
--- a/src/pyams_default_theme/component/paragraph/contact.py	Wed Mar 28 15:29:13 2018 +0200
+++ b/src/pyams_default_theme/component/paragraph/contact.py	Wed Mar 28 15:47:50 2018 +0200
@@ -68,7 +68,7 @@
 
 
 @adapter_config(context=IContactParagraph, provides=IContactParagraphDefaultRendererSettings)
-def ContactParagraphDefaultRendererSettingsFactory(context):
+def contact_paragraph_default_renderer_settings_factory(context):
     """Contact paragraph default renderer settings factory"""
     annotations = IAnnotations(context)
     settings = annotations.get(CONTACT_DEFAULT_RENDERER_SETTINGS_KEY)
--- a/src/pyams_default_theme/component/paragraph/frame.py	Wed Mar 28 15:29:13 2018 +0200
+++ b/src/pyams_default_theme/component/paragraph/frame.py	Wed Mar 28 15:47:50 2018 +0200
@@ -73,7 +73,7 @@
 
 
 @adapter_config(context=IFrameParagraph, provides=IDefaultFrameParagraphRendererSettings)
-def DefaultFrameParagraphRendererSettingsFactory(context):
+def default_frame_paragraph_renderer_settings_factory(context):
     """Frame paragraph default renderer settings factory"""
     annotations = IAnnotations(context)
     settings = annotations.get(FRAME_PARAGRAPH_RENDERER_SETTINGS_KEY)
@@ -94,7 +94,7 @@
 
 
 @adapter_config(context=IFrameParagraph, provides=ILateralFrameParagraphRendererSettings)
-def LateralFrameParagraphRendererSettingsFactory(context):
+def lateral_frame_paragraph_renderer_settings_factory(context):
     """Frame text paragraph lateral renderer settings factory"""
     annotations = IAnnotations(context)
     settings = annotations.get(LATERAL_FRAME_PARAGRAPH_RENDERER_SETTINGS_KEY)
--- a/src/pyams_default_theme/component/paragraph/verbatim.py	Wed Mar 28 15:29:13 2018 +0200
+++ b/src/pyams_default_theme/component/paragraph/verbatim.py	Wed Mar 28 15:47:50 2018 +0200
@@ -65,7 +65,7 @@
 
 
 @adapter_config(context=IVerbatimParagraph, provides=IDefaultVerbatimParagraphRendererSettings)
-def DefaultVerbatimParagraphRendererSettingsFactory(context):
+def default_verbatim_paragraph_renderer_settings_factory(context):
     """Frame paragraph default renderer settings factory"""
     annotations = IAnnotations(context)
     settings = annotations.get(VERBATIM_PARAGRAPH_RENDERER_SETTINGS_KEY)
@@ -86,7 +86,7 @@
 
 
 @adapter_config(context=IVerbatimParagraph, provides=ILateralVerbatimParagraphRendererSettings)
-def LateralVerbatimParagraphRendererSettingsFactory(context):
+def lateral_verbatim_paragraph_renderer_settings_factory(context):
     """Frame text paragraph lateral renderer settings factory"""
     annotations = IAnnotations(context)
     settings = annotations.get(LATERAL_VERBATIM_PARAGRAPH_RENDERER_SETTINGS_KEY)