generic setup&workflow: how to add to binding??
Hi there, I created a workflow product. now I would like this workflow *added* to the bindings of the actual workflow settings when the product is installed. so I have something like: File (Default) chanched to File (Default) MyWorklow I this possible? If yes how? thanks robert
Yes you can, Plone do it with generic setup. - Register your profile (take a look at GenericSetup documentation) - take a look here: https://svn.plone.org/svn/plone/CMFPlone/tags/3.1.4/profiles/default/ (worflows.xml register the workflows, workflows folder contains them) look like that; <bindings> <default> <bound-workflow workflow_id="simple_publication_workflow"/> </default> <type type_id="File"> <bound-workflow workflow_id="myworkflow"/> </type> robert rottermann a écrit :
Hi there, I created a workflow product. now I would like this workflow *added* to the bindings of the actual workflow settings when the product is installed.
so I have something like: File (Default) chanched to File (Default) MyWorklow
I this possible? If yes how?
thanks robert _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
thanks Jean-Michel, Jean-Michel FRANCOIS schrieb:
<bindings> <default> <bound-workflow workflow_id="simple_publication_workflow"/> </default>
<type type_id="File">
<bound-workflow workflow_id="myworkflow"/>
</type>
this unfortunately *replaces* the entries in the binding. I would like to add to the existing ones. I can do that by running an old fasion install script but would prefere to do it "rigth". thanks robert
participants (2)
-
Jean-Michel FRANCOIS -
robert rottermann