Renamed factories to use snake_case on functions
authorThierry Florac <thierry.florac@onf.fr>
Wed, 28 Mar 2018 16:02:34 +0200
changeset 63 a72adec69419
parent 62 2ea010da1d82
child 64 e9e71b24f431
Renamed factories to use snake_case on functions
src/pyams_scheduler/trigger.py
--- a/src/pyams_scheduler/trigger.py	Wed Mar 28 15:35:04 2018 +0200
+++ b/src/pyams_scheduler/trigger.py	Wed Mar 28 16:02:34 2018 +0200
@@ -90,7 +90,7 @@
 
 
 @adapter_config(context=ICronTask, provides=ICronTaskScheduling)
-def CronTaskSchedulerInfoFactory(context):
+def cron_task_scheduler_info_factory(context):
     """Cron-style task scheduling info factory"""
     annotations = IAnnotations(context)
     info = annotations.get(SCHEDULER_TASK_CRON_INFO)
@@ -126,7 +126,7 @@
 
 
 @adapter_config(context=IDateTask, provides=IDateTaskScheduling)
-def DateTaskSchedulerInfoFactory(context):
+def date_task_scheduler_info_factory(context):
     """Date-style task scheduling info factory"""
     annotations = IAnnotations(context)
     info = annotations.get(SCHEDULER_TASK_DATE_INFO)
@@ -174,7 +174,7 @@
 
 
 @adapter_config(context=ILoopTask, provides=ILoopTaskScheduling)
-def LoopTaskSchedulerInfoFactory(context):
+def loop_task_scheduler_info_factory(context):
     """Loop-style task scheduling info factory"""
     annotations = IAnnotations(context)
     info = annotations.get(SCHEDULER_TASK_LOOP_INFO)