2 from Products
.Plinn
.utils
import listWorkflowActions
4 actions
= listWorkflowActions(context
)
5 redirect
= context
.REQUEST
.RESPONSE
.redirect
7 return redirect(actions
[0]['url'])
9 from ZTUtils
import make_query
as mq
10 from Products
.Plinn
.utils
import transtlate
as _
11 return redirect('%s?%s' % (actions
[0]['url'],
12 mq(portal_status_message
= _('You are not allowed to change this content state.'))))