[Zope-CMF] WorkflowMethod
Mark McEahern
mark@mceahern.com
Thu, 9 Jan 2003 10:02:33 -0600
For my portal types, I assume I should have an edit() method and that it
should be wrapped as a WorkflowMethod(), but I'm really not sure what
exactly this buys me. My portal types aren't anything fancy. Things like
PressRelease, Contact, etc.
I've looked at the source for CMFCore/WorkflowCore.py and WorkflowTool.py.
I think the reason to use WorkflowMethod() is that I want to make it
possible to trigger workflow stuff when the edit() method is called. I may
not know, when authoring the content type, what sort of workflow will be
designed for the object--but I can reasonably assume that edit()'ing the
object is likely to be significant to workflow.
Can someone confirm or improve my explanation? I'm just trying to
understand.
Thanks,
// mark
-