plone.api.content.get_state does not work with two workflows

Open
#459 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
api

Research direction

Start at the plone.api.content.get_state entry point and review how it selects a workflow for an object with two workflows. Check the related workflow API and existing tests before defining coverage. Done means callers can select the workflow_id or state_variable and receive that workflow's state.

Written by the indexing model from the issue text.

Description

For our project we use two workflows for one object:

  1. Plone Standard Workflow to controll access
  2. Custom Workflow to controll export to another database

The plone.api function returns the state of the first workflow. There is no way to access the second one vie plone.api e.g. by optional parameter providing the wrokflow_id or the state_variable.

Dominant language
Python
Stars
101
Forks
62
Avg merge
15h 15m
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from plone/plone.api

All issues in plone/plone.api

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.