I have a custom Dexterity content type in Plone. He can only have documents as children. I want these documents to be directly published as they are created.
I can easily achieve this by setting the appropriate workflow for the Document type, but this will affect every document on my site. I want only those that were inside my container type to be published directly.
Two options come to me:
User page
Create basically only a copy of the stock document type and set its workflow to only the published state.
Event
Add an IObjectAdded event for Documents and check if the parent of the new document is my container type and does manual publishing in python code.
Nothing is too good. Do I have any other options?
python workflow plone
Epeli
source share