evtObj is the object created by invokeFactory

So I would to do the following :

<code>
        review_state = workflow_tool.getInfoFor(evtObj, 'review_state')

        if (review_state == "private") :
            # try perform 'archive' transition
            try:
                workflow_tool.doActionFor(evtObj, 'submit')
                workflow_tool.doActionFor(evtObj, 'publish')
            except WorkflowException:
                # Have to log the pb
</code>

Thank you


Andreas Jung-5 wrote:
> 
> Why? Using  doActionFor() is the way to go.
> 
> -aj
> 

-- 
View this message in context: 
http://n2.nabble.com/old-content-import-in-Plone-3-tp3200125p3200188.html
Sent from the Product Developers mailing list archive at Nabble.com.


_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to