Back to index

plone3  3.1.7
prefs_workflow_advanced_edit.py
Go to the documentation of this file.
00001 ## Script (Python) "prefs_workflow_advanced_edit"
00002 ##bind container=container
00003 ##bind context=context
00004 ##bind namespace=
00005 ##bind script=script
00006 ##bind subpath=traverse_subpath
00007 ##parameters=wf
00008 ##title=
00009 ##
00010 # Example code:
00011 
00012 # Import a standard function, and get the HTML request and response objects.
00013 from Products.PythonScripts.standard import html_quote
00014 request = container.REQUEST
00015 RESPONSE =  request.RESPONSE
00016 
00017 for w in wf.keys():
00018     context.portal_workflow.setChainForPortalTypes((w,), wf[w], REQUEST=context.REQUEST)
00019 return context.prefs_workflow_advanced()