Renamed factories to use snake_case on functions
authorThierry Florac <thierry.florac@onf.fr>
Wed, 28 Mar 2018 15:46:19 +0200
changeset 501 3407e6940f6a
parent 500 cd0c53346edc
child 502 9ba37584f255
Renamed factories to use snake_case on functions
src/pyams_content/component/gallery/__init__.py
src/pyams_content/component/illustration/__init__.py
src/pyams_content/component/paragraph/pictogram.py
src/pyams_content/component/paragraph/zmi/container.py
src/pyams_content/component/theme/__init__.py
src/pyams_content/component/theme/portlet.py
src/pyams_content/component/video/__init__.py
src/pyams_content/component/video/provider/dailymotion.py
src/pyams_content/component/video/provider/vimeo.py
src/pyams_content/component/video/provider/youtube.py
src/pyams_content/component/video/zmi/paragraph.py
src/pyams_content/features/renderer/__init__.py
src/pyams_content/features/review/__init__.py
src/pyams_content/profile/admin.py
src/pyams_content/reference/pictograms/manager.py
src/pyams_content/root/__init__.py
src/pyams_content/shared/blog/__init__.py
src/pyams_content/shared/blog/manager.py
src/pyams_content/shared/common/__init__.py
src/pyams_content/shared/common/manager.py
src/pyams_content/shared/common/security.py
src/pyams_content/shared/common/types.py
src/pyams_content/shared/form/__init__.py
src/pyams_content/shared/form/field.py
src/pyams_content/shared/form/manager.py
src/pyams_content/shared/form/zmi/field.py
src/pyams_content/shared/imagemap/__init__.py
src/pyams_content/shared/imagemap/manager.py
src/pyams_content/shared/logo/__init__.py
src/pyams_content/shared/logo/manager.py
src/pyams_content/shared/news/__init__.py
src/pyams_content/shared/news/manager.py
src/pyams_content/shared/site/__init__.py
src/pyams_content/shared/site/container.py
src/pyams_content/shared/site/manager.py
src/pyams_content/shared/view/__init__.py
src/pyams_content/shared/view/manager.py
src/pyams_content/shared/view/reference.py
src/pyams_content/shared/view/theme.py
--- a/src/pyams_content/component/gallery/__init__.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/component/gallery/__init__.py	Wed Mar 28 15:46:19 2018 +0200
@@ -177,7 +177,7 @@
 
 
 @adapter_config(name='gallery', context=IGalleryTarget, provides=IContentChecker)
-def GalleryTargetContentChecker(context):
+def gallery_target_content_checker(context):
     gallery = IGallery(context)
     return IContentChecker(gallery, None)
 
--- a/src/pyams_content/component/illustration/__init__.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/component/illustration/__init__.py	Wed Mar 28 15:46:19 2018 +0200
@@ -177,7 +177,7 @@
 
 
 @adapter_config(name='illustration', context=IIllustrationTarget, provides=IContentChecker)
-def IllustrationTargetContentChecker(context):
+def illustration_target_content_checker(context):
     """Illustration target content checker"""
     illustration = IIllustration(context, None)
     if illustration is not None:
--- a/src/pyams_content/component/paragraph/pictogram.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/component/paragraph/pictogram.py	Wed Mar 28 15:46:19 2018 +0200
@@ -84,7 +84,7 @@
 
 
 @adapter_config(context=IPictogramItem, provides=IFormContextPermissionChecker)
-def PictogramItemPermissionChecker(context):
+def pictogram_item_permission_checker(context):
     """Pictogram item permission checker"""
     content = get_parent(context, IPictogramContainerTarget)
     return IFormContextPermissionChecker(content)
--- a/src/pyams_content/component/paragraph/zmi/container.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/component/paragraph/zmi/container.py	Wed Mar 28 15:46:19 2018 +0200
@@ -179,7 +179,7 @@
 
 
 @adapter_config(context=ParagraphContainerShowHideColumn, provides=IFormSecurityContext)
-def ShowHideColumnSecurityContextFactory(column):
+def showhide_column_security_context_factory(column):
     """Show/hide column security context factory"""
     return column.table.context
 
--- a/src/pyams_content/component/theme/__init__.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/component/theme/__init__.py	Wed Mar 28 15:46:19 2018 +0200
@@ -44,7 +44,7 @@
 
 
 @adapter_config(context=IThemesManagerTarget, provides=IThemesManager)
-def ThemesManagerFactory(target):
+def themes_manager_factory(target):
     """Themes manager factory"""
     annotations = IAnnotations(target)
     manager = annotations.get(THEMES_MANAGER_KEY)
@@ -63,7 +63,7 @@
 
 
 @adapter_config(context=IThemesTarget, provides=IThemesInfo)
-def ThemesInfoFactory(target):
+def themes_info_factory(target):
     """Themes info factory"""
     annotations = IAnnotations(target)
     info = annotations.get(THEMES_INFO_KEY)
--- a/src/pyams_content/component/theme/portlet.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/component/theme/portlet.py	Wed Mar 28 15:46:19 2018 +0200
@@ -35,7 +35,7 @@
 
 
 @adapter_config(context=IPortletThemesSettingsTarget, provides=IPortletThemesSettings)
-def PortletThemesSettingsFactory(context):
+def portlet_themes_settings_factory(context):
     """Portlet themes settings adapter"""
     annotations = IAnnotations(context)
     settings = annotations.get(PORTLET_SETTINGS_THEMES_KEY)
--- a/src/pyams_content/component/video/__init__.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/component/video/__init__.py	Wed Mar 28 15:46:19 2018 +0200
@@ -58,7 +58,7 @@
 
 
 @adapter_config(context=IExternalVideo, provides=IExternalVideoSettings)
-def ExternalVideoSettingsFactory(context):
+def external_video_settings_factory(context):
     """External video settings factory"""
     if not context.provider_name:
         return None
--- a/src/pyams_content/component/video/provider/dailymotion.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/component/video/provider/dailymotion.py	Wed Mar 28 15:46:19 2018 +0200
@@ -23,7 +23,7 @@
 from pyams_content.features.checker.interfaces import IContentChecker
 
 # import packages
-from pyams_content.component.video import ExternalVideoSettingsFactory
+from pyams_content.component.video import external_video_settings_factory
 from pyams_content.features.checker import BaseContentChecker
 from pyams_utils.adapter import adapter_config
 from pyams_utils.registry import utility_config
@@ -74,15 +74,15 @@
 
 
 @adapter_config(context=IExternalVideo, provides=IDailymotionVideoSettings)
-def DailymotionVideoSettingsFactory(context):
+def dailymotion_video_settings_factory(context):
     """Dailymotion video settings factory"""
     if context.provider_name != 'Dailymotion':
         return None
-    return ExternalVideoSettingsFactory(context)
+    return external_video_settings_factory(context)
 
 
 @adapter_config(context=DailymotionVideoProvider, provides=IExternalVideoSettings)
-def DailymotionVideoProviderSettingsFactory(context):
+def dailymotion_video_provider_settings_factory(context):
     """Dailymotion video provider settings factory"""
     return DailymotionVideoSettings()
 
--- a/src/pyams_content/component/video/provider/vimeo.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/component/video/provider/vimeo.py	Wed Mar 28 15:46:19 2018 +0200
@@ -24,7 +24,7 @@
 from pyams_content.features.checker.interfaces import IContentChecker
 
 # import packages
-from pyams_content.component.video import ExternalVideoSettingsFactory
+from pyams_content.component.video import external_video_settings_factory
 from pyams_content.features.checker import BaseContentChecker
 from pyams_utils.adapter import adapter_config
 from pyams_utils.registry import utility_config
@@ -72,15 +72,15 @@
 
 
 @adapter_config(context=IExternalVideo, provides=IVimeoVideoSettings)
-def VimeoVideoSettingsFactory(context):
+def vimeo_video_settings_factory(context):
     """Vimeo video settings factory"""
     if context.provider_name != 'Vimeo':
         return None
-    return ExternalVideoSettingsFactory(context)
+    return external_video_settings_factory(context)
 
 
 @adapter_config(context=VimeoVideoProvider, provides=IExternalVideoSettings)
-def VimeoVideoProviderSettingsFactory(context):
+def vimeo_video_provider_settings_factory(context):
     """Vimeo video provider settings factory"""
     return VimeoVideoSettings()
 
--- a/src/pyams_content/component/video/provider/youtube.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/component/video/provider/youtube.py	Wed Mar 28 15:46:19 2018 +0200
@@ -24,7 +24,7 @@
 from pyams_content.features.checker.interfaces import IContentChecker
 
 # import packages
-from pyams_content.component.video import ExternalVideoSettingsFactory
+from pyams_content.component.video import external_video_settings_factory
 from pyams_content.features.checker import BaseContentChecker
 from pyams_utils.adapter import adapter_config
 from pyams_utils.registry import utility_config
@@ -76,16 +76,16 @@
 
 
 @adapter_config(context=IExternalVideo, provides=IYoutubeVideoSettings)
-def YoutubeVideoSettingsFactory(context):
+def youtube_video_settings_factory(context):
     """Youtube video settings factory"""
     if context.provider_name != 'Youtube':
         return None
-    return ExternalVideoSettingsFactory(context)
+    return external_video_settings_factory(context)
 
 
 @adapter_config(context=YoutubeVideoProvider, provides=IExternalVideoSettings)
-def YoutubeVideoProviderSettingsFactory(context):
-    """Youtubr video provider settings factory"""
+def youtube_video_provider_settings_factory(context):
+    """Youtube video provider settings factory"""
     return YoutubeVideoSettings()
 
 
--- a/src/pyams_content/component/video/zmi/paragraph.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/component/video/zmi/paragraph.py	Wed Mar 28 15:46:19 2018 +0200
@@ -148,7 +148,7 @@
 
 @view_config(name='get-video-provider-settings-add-form.html', context=IParagraphContainerTarget,
              request_type=IPyAMSLayer, permission=MANAGE_CONTENT_PERMISSION, xhr=True)
-def ExternalVideoProviderSettingsAddForm(request):
+def external_video_provider_settings_add_form(request):
     """External video provider settings form"""
     provider_name = request.params.get('provider_name')
     if provider_name is None:
--- a/src/pyams_content/features/renderer/__init__.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/features/renderer/__init__.py	Wed Mar 28 15:46:19 2018 +0200
@@ -37,13 +37,13 @@
 
 
 @adapter_config(context=IRenderedContent, provides=IContentRenderer)
-def RenderedContentRendererFactory(context):
+def rendered_content_renderer_factory(context):
     """Rendered content renderer factory"""
     return context.get_renderer()
 
 
 @adapter_config(context=IRenderedContent, provides=IRendererSettings)
-def RenderedContentRendererSettingsFactory(context):
+def rendered_content_renderer_settings_factory(context):
     """Rendered content renderer settings factory"""
     renderer = IContentRenderer(context)
     if renderer.settings_interface is None:
--- a/src/pyams_content/features/review/__init__.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/features/review/__init__.py	Wed Mar 28 15:46:19 2018 +0200
@@ -95,7 +95,7 @@
 
 
 @adapter_config(context=IReviewTarget, provides=IReviewComments)
-def SharedContentReviewCommentsFactory(context):
+def shared_content_review_comments_factory(context):
     """Shared content review comments factory"""
     annotations = IAnnotations(context)
     comments = annotations.get(REVIEW_COMMENTS_ANNOTATION_KEY)
--- a/src/pyams_content/profile/admin.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/profile/admin.py	Wed Mar 28 15:46:19 2018 +0200
@@ -49,13 +49,13 @@
 
 
 @adapter_config(context=Interface, provides=IAdminProfile)
-def AdminProfileFactory(context):
+def admin_profile_factory(context):
     request = check_request()
     return IAdminProfile(request.principal)
 
 
 @adapter_config(context=IPrincipalInfo, provides=IAdminProfile)
-def PrincipalAdminProfileFactory(principal):
+def principal_admin_profile_factory(principal):
     """Principal admin profile factory adapter"""
     annotations = IAnnotations(principal)
     profile = annotations.get(ADMIN_PROFILE_KEY)
--- a/src/pyams_content/reference/pictograms/manager.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/reference/pictograms/manager.py	Wed Mar 28 15:46:19 2018 +0200
@@ -44,7 +44,7 @@
 
 
 @adapter_config(context=IPictogramManagerTarget, provides=IPictogramManager)
-def PictogramManagerFactory(target):
+def pictogram_manager_factory(target):
     """Pictogram manager factory"""
     annotations = IAnnotations(target)
     manager = annotations.get(PICTOGRAM_MANAGER_KEY)
--- a/src/pyams_content/root/__init__.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/root/__init__.py	Wed Mar 28 15:46:19 2018 +0200
@@ -71,7 +71,7 @@
 
 
 @adapter_config(context=ISiteRoot, provides=IConfigurationFactory)
-def SiteRootConfigurationFactory(context):
+def site_root_configuration_factory(context):
     return SiteRootConfiguration
 
 
@@ -81,7 +81,7 @@
 
 
 @adapter_config(context=ISiteRoot, provides=IBackOfficeConfigurationFactory)
-def SiteRootBackOfficeConfigurationFactory(context):
+def site_root_back_office_configuration_factory(context):
     return SiteRootBackOfficeConfiguration
 
 
--- a/src/pyams_content/shared/blog/__init__.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/shared/blog/__init__.py	Wed Mar 28 15:46:19 2018 +0200
@@ -56,5 +56,5 @@
 
 
 @adapter_config(context=IWfBlogPostFactory, provides=IWfSharedContentFactory)
-def BlogPostContentFactory(context):
+def blog_post_content_factory(context):
     return WfBlogPost
--- a/src/pyams_content/shared/blog/manager.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/shared/blog/manager.py	Wed Mar 28 15:46:19 2018 +0200
@@ -85,17 +85,17 @@
 
 
 @adapter_config(context=ISiteRoot, provides=IBlogManagerFactory)
-def SiteRootBlogManagerFactory(context):
+def site_root_blog_manager_factory(context):
     return BlogManager
 
 
 @adapter_config(context=IBlogManager, provides=IBlogFolderFactory)
-def BlogManagerFolderFactory(context):
+def blog_manager_folder_factory(context):
     return BlogFolder
 
 
 @adapter_config(context=IBlogManager, provides=ISharedContentFactory)
-def BlogManagerTopicFactory(context):
+def blog_manager_topic_factory(context):
     return BlogPost
 
 
--- a/src/pyams_content/shared/common/__init__.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/shared/common/__init__.py	Wed Mar 28 15:46:19 2018 +0200
@@ -202,7 +202,7 @@
 
 
 @adapter_config(context=IWfSharedContent, provides=ISequentialIdInfo)
-def WfSharedContentSequenceAdapter(context):
+def wf_shared_content_sequence_adapter(context):
     """Shared content sequence adapter"""
     parent = get_parent(context, ISharedContent)
     return ISequentialIdInfo(parent)
@@ -222,7 +222,7 @@
 
 
 @adapter_config(context=IWfSharedContent, provides=IWorkflow)
-def WfSharedContentWorkflowAdapter(context):
+def wf_shared_content_workflow_adapter(context):
     """Shared content workflow adapter"""
     parent = get_parent(context, IBaseSharedTool)
     return query_utility(IWorkflow, name=parent.shared_content_workflow)
@@ -300,7 +300,7 @@
 
 
 @adapter_config(context=ISharedContent, provides=IWorkflow)
-def SharedContentWorkflowAdapter(context):
+def shared_content_workflow_adapter(context):
     """Shared content workflow adapter"""
     parent = get_parent(context, IBaseSharedTool)
     return query_utility(IWorkflow, name=parent.shared_content_workflow)
--- a/src/pyams_content/shared/common/manager.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/shared/common/manager.py	Wed Mar 28 15:46:19 2018 +0200
@@ -77,6 +77,6 @@
 
 
 @adapter_config(context=IBaseSharedTool, provides=IWorkflow)
-def SharedToolWorkflowAdapter(context):
+def shared_tool_workflow_adapter(context):
     """Shared tool workflow adapter"""
     return query_utility(IWorkflow, name=context.shared_content_workflow)
--- a/src/pyams_content/shared/common/security.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/shared/common/security.py	Wed Mar 28 15:46:19 2018 +0200
@@ -104,7 +104,7 @@
 
 
 @adapter_config(context=IWfSharedContent, provides=IManagerRestrictions)
-def SharedContentManagerRestrictions(context):
+def shared_content_manager_restrictions(context):
     """Shared tool manager restrictions"""
     tool = get_parent(context, IBaseSharedTool)
     if tool is not None:
@@ -112,6 +112,6 @@
 
 
 @adapter_config(context=IBaseSharedTool, provides=IManagerRestrictionsFactory)
-def SharedToolManagerRestrictionsFactory(context):
+def shared_tool_manager_restrictions_factory(context):
     """Default shared tool manager restrictions factory"""
     return SharedToolManagerRestrictionInfo
--- a/src/pyams_content/shared/common/types.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/shared/common/types.py	Wed Mar 28 15:46:19 2018 +0200
@@ -91,7 +91,7 @@
 
 
 @adapter_config(context=ITypedSharedTool, provides=ITypedDataManager)
-def TypedSharedToolDataManagerFactory(context):
+def typed_shared_tool_data_manager_factory(context):
     """Types shared tool data manager factory"""
     annotations = IAnnotations(context)
     manager = annotations.get(DATA_MANAGER_ANNOTATION_KEY)
--- a/src/pyams_content/shared/form/__init__.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/shared/form/__init__.py	Wed Mar 28 15:46:19 2018 +0200
@@ -84,7 +84,7 @@
 
 
 @adapter_config(context=IWfFormFactory, provides=IWfSharedContentFactory)
-def FormContentFactory(context):
+def form_content_factory(context):
     return WfForm
 
 
--- a/src/pyams_content/shared/form/field.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/shared/form/field.py	Wed Mar 28 15:46:19 2018 +0200
@@ -75,7 +75,7 @@
 
 
 @adapter_config(context=IFormFieldContainerTarget, provides=IFormFieldContainer)
-def FormFieldContainerFactory(context):
+def form_field_container_factory(context):
     """Form fields container factory"""
     annotations = IAnnotations(context)
     container = annotations.get(FORM_FIELD_CONTAINER_KEY)
--- a/src/pyams_content/shared/form/manager.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/shared/form/manager.py	Wed Mar 28 15:46:19 2018 +0200
@@ -48,7 +48,7 @@
 
 
 @adapter_config(context=IFormsManager, provides=ISharedContentFactory)
-def FormsManagerContentFactory(context):
+def forms_manager_content_factory(context):
     return Form
 
 
--- a/src/pyams_content/shared/form/zmi/field.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/shared/form/zmi/field.py	Wed Mar 28 15:46:19 2018 +0200
@@ -147,7 +147,7 @@
 
 
 @adapter_config(context=FormFieldsContainerShowHideColumn, provides=IFormSecurityContext)
-def ShowHideColumnSecurityContextFactory(column):
+def show_hide_column_security_context_factory(column):
     """Show/hide column security context factory"""
     return column.table.context
 
--- a/src/pyams_content/shared/imagemap/__init__.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/shared/imagemap/__init__.py	Wed Mar 28 15:46:19 2018 +0200
@@ -110,7 +110,7 @@
 
 
 @adapter_config(context=IWfImageMapFactory, provides=IWfSharedContentFactory)
-def ImageMapContentFactory(context):
+def image_map_content_factory(context):
     return WfImageMap
 
 
--- a/src/pyams_content/shared/imagemap/manager.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/shared/imagemap/manager.py	Wed Mar 28 15:46:19 2018 +0200
@@ -48,7 +48,7 @@
 
 
 @adapter_config(context=IImageMapManager, provides=ISharedContentFactory)
-def ImageMapsManagerContentFactory(context):
+def image_maps_manager_content_factory(context):
     return ImageMap
 
 
--- a/src/pyams_content/shared/logo/__init__.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/shared/logo/__init__.py	Wed Mar 28 15:46:19 2018 +0200
@@ -51,7 +51,7 @@
 
 
 @adapter_config(context=IWfLogoFactory, provides=IWfSharedContentFactory)
-def LogoContentFactory(context):
+def logo_content_factory(context):
     return WfLogo
 
 
--- a/src/pyams_content/shared/logo/manager.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/shared/logo/manager.py	Wed Mar 28 15:46:19 2018 +0200
@@ -48,7 +48,7 @@
 
 
 @adapter_config(context=ILogosManager, provides=ISharedContentFactory)
-def LogosManagerContentFactory(context):
+def logos_manager_content_factory(context):
     """Logos manager content factory"""
     return Logo
 
--- a/src/pyams_content/shared/news/__init__.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/shared/news/__init__.py	Wed Mar 28 15:46:19 2018 +0200
@@ -48,5 +48,5 @@
 
 
 @adapter_config(context=IWfNewsEventFactory, provides=IWfSharedContentFactory)
-def NewsEventContentFactory(context):
+def news_event_content_factory(context):
     return WfNewsEvent
--- a/src/pyams_content/shared/news/manager.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/shared/news/manager.py	Wed Mar 28 15:46:19 2018 +0200
@@ -54,7 +54,7 @@
 
 
 @adapter_config(context=INewsManager, provides=ISharedContentFactory)
-def NewsManagerContentFactory(context):
+def news_manager_content_factory(context):
     return NewsEvent
 
 
--- a/src/pyams_content/shared/site/__init__.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/shared/site/__init__.py	Wed Mar 28 15:46:19 2018 +0200
@@ -56,5 +56,5 @@
 
 
 @adapter_config(context=IWfTopicFactory, provides=IWfSharedContentFactory)
-def TopicContentFactory(context):
+def topic_content_factory(context):
     return WfTopic
--- a/src/pyams_content/shared/site/container.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/shared/site/container.py	Wed Mar 28 15:46:19 2018 +0200
@@ -88,5 +88,5 @@
 
 
 @adapter_config(context=ISiteContainer, provides=ISharedContentFactory)
-def SiteContainerTopicFactory(context):
+def site_container_topic_factory(context):
     return Topic
--- a/src/pyams_content/shared/site/manager.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/shared/site/manager.py	Wed Mar 28 15:46:19 2018 +0200
@@ -83,17 +83,17 @@
 
 
 @adapter_config(context=ISiteRoot, provides=ISiteManagerFactory)
-def SiteRootSiteManagerFactory(context):
+def site_root_site_manager_factory(context):
     return SiteManager
 
 
 @adapter_config(context=ISiteManager, provides=ISiteFolderFactory)
-def SiteManagerFolderFactory(context):
+def site_manager_folder_factory(context):
     return SiteFolder
 
 
 @adapter_config(context=ISiteContainer, provides=ISharedContentFactory)
-def SiteManagerSharedContentFactory(context):
+def site_manager_shared_content_factory(context):
     return Topic
 
 
--- a/src/pyams_content/shared/view/__init__.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/shared/view/__init__.py	Wed Mar 28 15:46:19 2018 +0200
@@ -118,7 +118,7 @@
 
 
 @adapter_config(context=IWfViewFactory, provides=IWfSharedContentFactory)
-def ViewContentFactory(context):
+def view_content_factory(context):
     return WfView
 
 
--- a/src/pyams_content/shared/view/manager.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/shared/view/manager.py	Wed Mar 28 15:46:19 2018 +0200
@@ -49,7 +49,7 @@
 
 
 @adapter_config(context=IViewsManager, provides=ISharedContentFactory)
-def ViewsManagerContentFactory(context):
+def views_manager_content_factory(context):
     """Views manager content factory"""
     return View
 
--- a/src/pyams_content/shared/view/reference.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/shared/view/reference.py	Wed Mar 28 15:46:19 2018 +0200
@@ -51,7 +51,7 @@
 
 @adapter_config(context=IWfView, provides=IViewInternalReferencesSettings)
 @adapter_config(name='references', context=IWfView, provides=IViewSettings)
-def ViewInternalReferencesSettingsFactory(view):
+def view_internal_references_settings_factory(view):
     """View internal references settings factory"""
     annotations = IAnnotations(view)
     settings = annotations.get(VIEW_REFERENCES_SETTINGS_KEY)
--- a/src/pyams_content/shared/view/theme.py	Wed Mar 28 15:28:01 2018 +0200
+++ b/src/pyams_content/shared/view/theme.py	Wed Mar 28 15:46:19 2018 +0200
@@ -58,7 +58,7 @@
 
 @adapter_config(context=IWfView, provides=IViewThemesSettings)
 @adapter_config(name='themes', context=IWfView, provides=IViewSettings)
-def ViewThemesSettingsFactory(view):
+def view_themes_settings_factory(view):
     """View themes settings factory"""
     annotations = IAnnotations(view)
     settings = annotations.get(VIEW_THEMES_SETTINGS_KEY)