# HG changeset patch # User Thierry Florac # Date 1522245754 -7200 # Node ID a72adec694198f5efcecba458bd63038e9333a90 # Parent 2ea010da1d8237e6427e1f0057d26dc9d0510055 Renamed factories to use snake_case on functions diff -r 2ea010da1d82 -r a72adec69419 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)