Closed xispa closed 7 months ago
Hi Jordi, many thanks for adding these helpers. There are only some minor things I would like to have to make it more understandable without looking into the structure of the whole workflow dict. I guess the changes would also allow us to add a better docstring, e.g.:
Appreciated. I agree with your suggestions, let me do these changes!
Description of the issue/feature this PR addresses
This Pull Request adds necessary functions to allow the update of workflows in an easy way, just by using dicts. For instance, one could add a new status and transition in the
SAMPLE_WORKFLOW
easily as follows:Current behavior before PR
Functions to update workflows easily are not present
Desired behavior after PR is merged
Functions to update workflows easily are present
-- I confirm I have tested this PR thoroughly and coded it according to PEP8 and Plone's Python styleguide standards.