[Zope-CVS] CVS: Products/OSCOM/NOTSite/skins/NOTContent - content_status_modify.py:1.1

Tres Seaver tseaver@zope.com
Mon, 26 May 2003 23:11:08 -0400


Update of /cvs-repository/Products/OSCOM/NOTSite/skins/NOTContent
In directory cvs.zope.org:/tmp/cvs-serv13308/skins/NOTContent

Added Files:
	content_status_modify.py 
Log Message:
 - Stay within CM interface during workflow.

=== Added File Products/OSCOM/NOTSite/skins/NOTContent/content_status_modify.py ===
## Script (Python) "content_status_modify"
##parameters=workflow_action, comment=''
##title=Modify the status of a content object
 
context.portal_workflow.doActionFor(
    context,
    workflow_action,
    comment=comment)

return_url = context.getTypeInfo().getActionById( 'edit' )

redirect_url = '%s/%s?%s' % ( context.absolute_url()
                            , return_url
                            , 'portal_status_message=Status+changed.'
                            )

context.REQUEST[ 'RESPONSE' ].redirect( redirect_url )