# HG changeset patch # User Thierry Florac # Date 1522245915 -7200 # Node ID 66d25a5fa1d3eed09b78995d392a4040453bebaa # Parent 645a9f5a274dbed69db18fabf3616bc5918c7553 Renamed factories to use snake_case on functions diff -r 645a9f5a274d -r 66d25a5fa1d3 src/pyams_workflow/content.py --- a/src/pyams_workflow/content.py Wed Mar 28 15:39:09 2018 +0200 +++ b/src/pyams_workflow/content.py Wed Mar 28 16:05:15 2018 +0200 @@ -198,7 +198,7 @@ @adapter_config(context=IWorkflowPublicationSupport, provides=IWorkflowPublicationInfo) -def WorkflowContentPublicationInfoFactory(context): +def workflow_content_publication_info_factory(context): """Workflow content info factory""" annotations = IAnnotations(context) info = annotations.get(WORKFLOW_CONTENT_KEY) diff -r 645a9f5a274d -r 66d25a5fa1d3 src/pyams_workflow/versions.py --- a/src/pyams_workflow/versions.py Wed Mar 28 15:39:09 2018 +0200 +++ b/src/pyams_workflow/versions.py Wed Mar 28 16:05:15 2018 +0200 @@ -136,7 +136,7 @@ @adapter_config(context=IWorkflowVersion, provides=IWorkflowState) -def WorkflowVersionStateFactory(context): +def workflow_version_state_factory(context): """Workflow content version state factory""" annotations = IAnnotations(context) state = annotations.get(WORKFLOW_VERSION_KEY) @@ -278,7 +278,7 @@ @adapter_config(context=IWorkflowManagedContent, provides=IWorkflowVersions) -def WorkflowContentVersionsFactory(context): +def workflow_content_versions_factory(context): """Workflow versions factory""" annotations = IAnnotations(context) versions = annotations.get(WORKFLOW_VERSIONS_KEY) @@ -291,7 +291,7 @@ @adapter_config(context=IWorkflowVersion, provides=IWorkflowVersions) -def WorkflowVersionVersionsFactory(context): +def workflow_version_versions_factory(context): """Workflow versions factory for version""" parent = get_parent(context, IWorkflowManagedContent) if parent is not None: