[Zope-CMF] Workflow transition after PUT

alan runyan alan runyan" <runyaga@runyaga.com
Wed, 24 Jul 2002 20:40:44 -0500


Hi.

I always knew I would have to do this.. and thought it would be easy when I
needed to do it... but I am having problems.
I want some objects to automatically transition *after* the objects PUT
method is called.  not after its instaniated (this is how is works
currently?)

If you put an object in 'Pending' as its initial state.  After its created
it is in that state and members can not change it becasue only Reviewers can
edit it in that state.  So I need it to happen not on initial state.. but
after its been PUT.

Also.. it seems that when a object defines PUT() -- that is participating
with the ZPublisher system (is this correct?)  well.. it seems like my
object (derives from CMFDefault.Document)  does not have Acquistion context
in the PUT method. the method signature is def PUT(self, REQUEST, RESPONSE)
and I'm not quite sure how to get an Acquistion context  so that I can get
to workflow tool to call doActionFor( self , 'submit')... but even when I
get this to work.  I will end up  having to hardcode this in the class's PUT
method.  any insight is greatly appreciated.

am I overlooking something?

cheers,
~runyaga