基于工作流状态设置默认视图

基于工作流状态设置默认视图
<subscriber
    for="your.package.interfaces.IYourContentType
         Products.CMFCore.interfaces.IActionSucceededEvent"
    handler=".handlers.yourTransitionHandler"
    />

and then in the "handlers.py" module handle the layout setting:

def yourTransitionHandler(self, event):
    """ """
    if event.action == 'publish':
        event.object.setLayout('publish_view')
    elif:
        event.object.setLayout('other_view') 

设置