collective / collective/collective.contentrules.setfield

exception with single state workflow

Open
#21 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2
Forks
0
PR merge metrics
No merged PRs in 30d

Description

```, 'NoneType' object has no attribute '__getitem__'```
i
Mostly likely where it tries to get the workflow state. https://github.com/collective/collective.contentrules.setfield/blob/master/collective/contentrules/setfield/action.py#L189.

Given you can get the workflow state using ```obj.restrictedTraverse('@@plone_context_state').workflow_state()``` in a script, I don't think you need this.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in collective/contentrules/setfield/action.py around line 189, where the issue reports workflow-state lookup failing for a single-state workflow. Compare that lookup with the suggested @@plone_context_state workflow_state() access, then verify that processing a single-state workflow no longer raises the reported TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.