Q: Plone: custom workflows and dynamic local roles I have a custom Dexterity type that allows a user to specify access restrictions, which are stored as fields on the type. I've created a custom borg.localrole ILocalRoleProvider which adapts the custom type and returns a set of roles based on those fields. I tested this with the custom type bound to simple_publication_workflow and the adapter worked as expected.
However, I need to customise the workflow quite substantially. Once I'd created a new workflow and assigned it to the custom type, the adapter stopped working. Placing a pdb breakpoint inside the adapter's initialiser showed it wasn't being called at all. If I change the workflow back to simple_publication_workflow it works again as expected, but if set to other standard workflows - such as one_state_workflow or plone_workflow - the adapter again isn't called.
What am I missing here? How can I have a workflow that interacts with an ILocalRoleProvider as expected?
