[Zope-CMF] Re: [Plone-users] DCWorkflow "cheat" question

Dieter Maurer dieter at handshake.de
Tue Aug 17 14:47:10 EDT 2004


Dmitry S. Makovey wrote at 2004-8-16 10:59 -0600:
> ...
>Now when if I delete old object 
>before paste new one I'll loose state as new object will get default state 
>which is "private". Is it possible to "cheat" and get right to "published" 
>state?

You can cheat with the "{get|set}StatusOf" WorkflowTool methods.
Note that cheating is potentially dangerous.

>Or any other alternatives with the same functionality?

I use automatic transitions for a similar purpose.

-- 
Dieter


More information about the Zope-CMF mailing list