[Zope-CMF] Programmatically installing a workflow script
Jean Jordaan
jean at upfrontsystems.co.za
Tue Aug 31 10:26:42 EDT 2004
Hi Dan
From CMFBoard/ForumWorkflow.py (grabbed at random):
from Products.PythonScripts.PythonScript import manage_addPythonScript
manage_addPythonScript(wf.scripts, 'stateChanged')
scr = getattr(wf.scripts, 'stateChanged')
scr.write(
"""##parameters=sci
sci.object.notifyStateChanged()
""")
--
Jean Jordaan
http://www.upfrontsystems.co.za
More information about the Zope-CMF
mailing list