Renamed factories to use snake_case on functions
authorThierry Florac <thierry.florac@onf.fr>
Wed, 28 Mar 2018 15:57:55 +0200
changeset 84 671cbbaa79df
parent 83 46aaeb3c5566
child 85 bd438ff8acb7
Renamed factories to use snake_case on functions
src/pyams_media/media.py
--- a/src/pyams_media/media.py	Wed Mar 28 15:33:36 2018 +0200
+++ b/src/pyams_media/media.py	Wed Mar 28 15:57:55 2018 +0200
@@ -49,7 +49,7 @@
 
 
 @adapter_config(context=IFile, provides=IMediaInfo)
-def MediaInfoFactory(context):
+def media_info_factory(context):
     """Media info adapter"""
     content_type = context.content_type
     if isinstance(content_type, bytes):
@@ -121,7 +121,7 @@
 
 
 @adapter_config(context=IFile, provides=IMediaConversions)
-def MediaConversionsFactory(context):
+def media_conversions_factory(context):
     """Media conversions factory"""
     annotations = IAnnotations(context)
     conversions = annotations.get(MEDIA_CONVERSIONS_KEY)