Andreas Jung wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi there,
is there a way to determine the workflow id(s) associated with an
instance of a content-type? Background: with placework workflows each
instance of a content-type may have a different workflow..what is the
way to figure out the related workflow id(s)?
I'd use something like this:
for the workflow id:
>>> wf_tool.getChainFor(obj)[0]
for the workflow object:
>>> wf_tool.getWorkflowsFor(obj)[0]
Of, course, if there may be no workflow defined, this code must be more
defensive.
Ricardo
Andreas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkm1H5wACgkQCJIWIbr9KYygSgCfXzoGhxfm5NLSoFpppXrebf58
ZzQAn1AtuU5Wr7xHWohT1ctdyECGp8SG
=dRld
-----END PGP SIGNATURE-----
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers
--
Ricardo Alves <[email protected]>
Eurotux <http://www.eurotux.com>
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers